Heres an example from the Variables from outside PHP section of the PHP
docs.
<form action="array.php" method="post">
<select multiple name="beer[]">
<option value="warthog">Warthog
<option value="guinness">Guinness
<option value="stuttgarter">Stuttgarter Schwabenbr�u
</select>
<input type="submit">
</form>
So basically you need to add the [] to the name. So in this example your
results will come back as an array: $beer = array("warthog", "guinness");
if you select the first two items.
Cheers,
Owen Prime
http://www.noggin.com.au
Khalid El-Kary wrote:
> hi,
> If i have a form that has a <select> with multiple="ture" how would i be
> able to retireve it's multiple values in the PHP script, i tried the
> $_REQUEST['fieldname'] it gave me only the last selected value
>
> note: multiple selection is done by holding ctrl :)
>
> khalid
>
>
>
> _________________________________________________________________
> Unlimited Internet access -- and 2 months free! Try MSN.
> http://resourcecenter.msn.com/access/plans/2monthsfree.asp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php