RE: [PHP] Getting a Multiple Select Form Field's Value
| From: | Barajas, Arturo | Date: | Fri, 21 Feb 2003 23:46:18 +0000 |
| Subject: | RE: [PHP] Getting a Multiple Select Form Field's Value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136573@lists.php.net to get a copy of this message | ||
Mike:
On the name of the select, use "[]".
<select name="select[]" size="3" multiple>
That way, you can access the array to see what options were selected.
--
Un gran saludo/Big regards...
Arturo Barajas, IT/Systems PPG MX (SJDR)
(427) 271-9918, x448
> -----Original Message-----
> From: Mike Walth [mailto:mike.walth@cinofusion.com]
> Sent: Viernes, 21 de Febrero de 2003 05:45 p.m.
> To: php-general@lists.php.net
> Subject: [PHP] Getting a Multiple Select Form Field's Value
>
>
> Hello:
>
> I'm trying to get the value from the following form field.
>
> <select name="select" size="3" multiple>
> <option value="1">Value1</option>
> <option value="2">Value2</option>
> <option value="3">Value3</option>
> </select>
>
> I can get it to return one value, but if I select multiple
> values I can't
> get all the values form it. Any ideas would be appreciated.
>
> Mike Walth
> CinoFusion
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>