RE: [PHP] Multiple Select And Javascript Issue
| From: | Grant Walters | Date: | Fri, 25 Aug 2000 04:42:13 +0000 |
| Subject: | RE: [PHP] Multiple Select And Javascript Issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13582@lists.php.net to get a copy of this message | ||
> > Scenario as follows:
> >
> > SELECT with MULTIPLE options is being built by Javascript code
> that won't
> > accept a variable name like "items[]" so it fills a field
> called "items".
> >
> > This is'nt too bad as I can work around it with a hidden field.
> >
> > The problem is that PHP doesn't populate HTTP_POST_VARS with the entries
> > from "items" unless they are acutally selected.
> >
> > Can I get PHP to return all values from the SELECT MULTIPLE variable?
> >
> > Regards
> >
> > GRANT WALTERS
> > Walters & Associates, P O Box 13-043, Johnsonville, Wellington,
> New Zealand
> > Phone: +64 4 4765175 CellPhone: 025 488265
> >
>
> Maybe this is relevant? http://au.php.net:81/FAQ.php/#7.14
>
The bit about the [] is. I managed to suss that one myself. My problem is
still that PHP seems to only propagate the values if all of the values are
selected. Or is it the Browser? not passing them.
I need to obtain all the values in the select list whether they are selected
or not.
Regards
GRANT WALTERS
Walters & Associates, P O Box 13-043, Johnsonville, Wellington, New Zealand
Phone: +64 4 4765175 CellPhone: 025 488265