Re: <SELECT multiple>
| From: | user at domain dot invalid | Date: | Fri, 20 Sep 2002 10:20:07 +0000 |
| Subject: | Re: <SELECT multiple> | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-386@lists.php.net to get a copy of this message | ||
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