bobby_dummy_022
11-26-2003, 09:36 PM
this is what I have:
<FORM Action="test.php" MULTIPLE>
<SELECT Name="fruits" size="3">
<OPTION value="1">Apple</OPTION>
<OPTION value="2">Orange</OPTION>
<OPTION value="3">Pineapple</OPTION>
<OPTION value="4">Grape</OPTION>
</SELECT>
</FORM>
my problem is, when I submit the form, I only get the value of the last selected item (despite the fact that the user can select multiple options frmo the list).
$_POST["fruits"] = (the last of the selected options)
I need to get the values of all of the selected options. How?
<FORM Action="test.php" MULTIPLE>
<SELECT Name="fruits" size="3">
<OPTION value="1">Apple</OPTION>
<OPTION value="2">Orange</OPTION>
<OPTION value="3">Pineapple</OPTION>
<OPTION value="4">Grape</OPTION>
</SELECT>
</FORM>
my problem is, when I submit the form, I only get the value of the last selected item (despite the fact that the user can select multiple options frmo the list).
$_POST["fruits"] = (the last of the selected options)
I need to get the values of all of the selected options. How?