View Full Version : Multiple variables from one drop down box

11-20-2006, 11:06 AM
Hi, i got small problem, i have created one multiple choice drop down box!
Now i choose multiple items from drop down box, by holding crt key, and then press submit, but it returns only last selected variable! How can i return array of selected variables? Thanks

SeeIT Solutions
11-20-2006, 11:48 AM
the name of the selectbox should be name[] with the square brackets at the end.

Then you can access them through $_POST['name'] which will be an array.


<select name="name[]" ...><option>.....</option><option>.....</option></select>