Loading values from a <select> tag

From: Date: Wed, 18 Jul 2001 17:07:27 +0000
Subject: Loading values from a <select> tag
Groups: php.general 
Request: Send a blank email to php-general+get-58478@lists.php.net to get a copy of this message
Hi all, I want to print all the text stored in a <select> tag. For example: <select name="my_select"> <option value=1>Hello <option value=2>World <option value=3>Again!!! </select> This is the final select, but is created dinamically with javascript. So when the sumbit button is pressed, I want that my php script output the folowing: The number of options is: X (3 in that example) The options was: value=1, text=Hello value=2, text=World value=3, text=Again!!! and so on. Thanks for your help.

« previous php.general (#58478) next »