Re: Getting a Multiple Select Form Field's Value
| From: | Markas | Date: | Sat, 22 Feb 2003 10:00:20 +0000 |
| Subject: | Re: Getting a Multiple Select Form Field's Value | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136613@lists.php.net to get a copy of this message | ||
Just replace the name of your <select> element to "select[]" , and you'll
get all the selected values as a php array under the name of
$_GET['select'].
"Mike Walth" <mike.walth@cinofusion.com> wrote in message
news:KJECIPINBFHBKHNAGNNIMEDACKAA.mike.walth@cinofusion.com...
> 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
>
>