<select name="my_select" multiselect>
...
</select>
then php would read as:
<?
for ($i=0;$i<count($my_select);$i++)
{
echo "Value$i={$my_select[$i]}<br>";
}
?>
"Mauricio T?Llez Jim?Nez" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]