Re: multiple select box not showing values
| From: | David Robley | Date: | Tue, 08 Jul 2003 07:22:16 +0000 |
| Subject: | Re: multiple select box not showing values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154313@lists.php.net to get a copy of this message | ||
In article <20030708070401.10504.qmail@pb1.pair.com>, montmica@isu.edu
says...
> I have a select box that is filled with multiple values and when the user
> clicks submit, it hightlights all the values in the select box and then
> sends this to my PHP file.
>
> I did a simple:
>
> echo ($_POST["imgList"]);
>
> to see what was happening and the only value being carried across is the
> last value selected, even though all values are selected. What might be
> causing only the last value to be chosen? I was thinking that it was some
> of the javascript that I use but I recall that it was working just fine with
> it. I've even tried removing the JS with the same results. Any ideas.
>
> thanks
You need to name the SELECT as imgList[] which will pass an array of all
the selected items to your script.
--
Quod subigo farinam
$email =~ s/oz$/au/o;