Re: HTTP_POST_VARS and Arrays
| From: | Matt Allen | Date: | Tue, 04 Jul 2000 06:58:47 +0000 |
| Subject: | Re: HTTP_POST_VARS and Arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4693@lists.php.net to get a copy of this message | ||
Hi Rasmus,
Like this
<form action=test.php method=POST>
<select name=blah[] MULTIPLE>
<option value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
</select>
</form>
If you dont select one of the options $blah will not show up on test.php
at all.
Its pretty weird, thats why i asked.
Matta
Rasmus Lerdorf wrote:
>
> > When im walking the HTTP_POST_VARS array im not getting any data from
> > the submitted form if the element in the form was an array.
> >
> > For instance, If it it a multiple select list and nothing is selected
> > then the form element doesnt even appear in the HTTP_POST_VARS array,
> > not even as a NULL.
>
> What do you mean nothing is selected? How do you make a select multiple
> tag without a default selection?
>
> -Rasmus
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Matt Allen Linux/PHP eCommerce
Solutions
Linux Worx Linux Networking
www.linuxworx.com.au Consulting
matt@linuxworx.com.au
0413 777 771