Re: Reading data from SELECT in PHP
| From: | Jim Lucas | Date: | Thu, 23 Mar 2006 02:42:13 +0000 |
| Subject: | Re: Reading data from SELECT in PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232430@lists.php.net to get a copy of this message | ||
tedd wrote:
Check out this site http://www.htmlhelp.com/reference/html40/forms/select.html It will explain how to setup a SELECT to allow you to submit multiple options from the list. JimHello friends, I've create a form containing a SELECT under JavaScript, where the user decide all list's elements. My problem is how can I get all list's elements on PHP. Using $-POST[] I only get the selected option. With my most sincere thanks. LorcaLorca: Yes, a SELECT only returns one value. You might want to look at: http://www.weberdev.com/get_example-1739.html It show one way to combine php and javascript variables. tedd PS: Probably a typo, but it's $_POST[] You can for sure have a SELECT select more then one option.