Re: multiple select
| From: | Toby Butzon | Date: | Fri, 16 Feb 2001 22:31:48 +0000 |
| Subject: | Re: multiple select | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40245@lists.php.net to get a copy of this message | ||
Change the name of your select to "test[]" instead of "test", then
access it like an array:
foreach($test as $current) {
echo "$current was selected<br>\n";
}
--toby
Pablo Martin De Natale wrote:
>
> Hello, I'm trying to make a multiple select...
>
> I've this code...
>
> <select name="test" size="3" multiple>
> <option value="1">1</option>
> <option value="2">2</option>
> <option value="3">3</option>
> </select>
>
> then I select more than one option but when I see the value of $test, I only see
>
> the last value that I checked.
>
> Somebody can help me?
>
> Thanks
>
> Pablo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net