Re: multiple select box not showing values
| From: | Micah Montoy | Date: | Tue, 08 Jul 2003 07:31:18 +0000 |
| Subject: | Re: multiple select box not showing values | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154315@lists.php.net to get a copy of this message | ||
I can't believe I totally overlooked that. Thanks. That solved the problem
completely.
"David Robley" <robleyd@ozemail.com.au> wrote in message
news:MPG.1975151db133b117989803@news.php.net...
> 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;
>