I have a situation where it would be nice to have a list box in a form where multiple options can be selected:
When the form is submitted, I get the following:
How do I push this info into an array in PHP? I can only get the last value ('orange') - - (as it replaces the first value read).
Code:
<form name="FruitBasket" method="get">
<select name="FRUITS" size="4" multiple>
<option value="Apple">Apple</option>
<option value="Banana">Banana</option>
<option value="Orange">Orange</option>
</select><input type="submit" value="Submit">
</form>
When the form is submitted, I get the following:
Code:
[URL unfurl="true"]http://localhost/multichoice.php?FRUITS=Apple&FRUITS=Orange[/URL]
How do I push this info into an array in PHP? I can only get the last value ('orange') - - (as it replaces the first value read).