Re: <SELECT multiple>

[email protected] Fri, 20 Sep 2002 12:20:07 +0200
Newsgroups php.lang
Message-ID <[email protected]>
Hello Jerome,

try something like this in your HTML.

<select name="var[]" multiple>

Then php treats $var as an array
You can also take a look at the FAQs in the documentation:

http://www.php.net/manual/en/printwn/faq.html.php

Matthias


Jerome wrote:
> Hello,
> 
> My HTML contains <SELECT> tags which allow "multiple" selection.
> 
> When the form is submitted, each of the selected option is posted that way:
> 
> url?data=option1&data=option2....
> 
> So $_REQUEST['data'] is not an array but contains the "option2" value.
> 
> How can I get the list of all the "data" values (without parsing
> $GLOBALS["HTTP_RAW_POST_DATA"]...) ?
> 
> Thanks,
> 
> Jerome
> 
>