I am writing a PHP script that contains an HTML select/option drop down menu with the multiple option enabled. I can select multiple options but when I submit my form, only the last element I selected in the list is sent to the next script. Here is a sample of the code I have written. Does anyone know where I'm going wrong on this? I hope someone can help.
Thanks
Harry
My Code:
<?php
echo "
<head><title></title></head>
<form action='showit.php' method='post'>
<body>
<p align='center'><br><br<br><br>
<select multiple name='veggies' size='4'>
<option value='Cabbage'>Cabbage</option>
<option value='Cauliflower'>Cauliflower</option>
<option value='Green Beans'>Green Beans</option>
<option value='Lettuce'>Lettuce</option>
<option value='Beets'>Beets</option>
<option value='Squash'>Squash</option>
<option value='Turnips'>Turnips</option>
<option value='Spinach'>Spinach</option>
<option value='Rutabagers'>Rutabagers</option>
<option value='Collard Greens'>Collard Greens</option>
</select>
<br><br>
<input type='submit'>
</p>
</form>
</body>
";
?>