Re: Reading data from SELECT in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tedd wrote:
Hello 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.

Lorca

Lorca:

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.

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.

Jim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux