Re: multiple selects and $_POST['vars'] MORE
| From: | Chris Knipe | Date: | Thu, 06 Jun 2002 17:53:15 +0000 |
| Subject: | Re: multiple selects and $_POST['vars'] MORE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100981@lists.php.net to get a copy of this message | ||
Yeah, agreed there!!!
You're not supposed to specify a name on a option, just on the select
itself. I've changed it now to use the array bit, and the form results
return it as a array as expected.
Thanks for all the help... I think it's time to download a new copy of the
manual again... :)
----- Original Message -----
From: "Philip Olson" <philip@cornado.com>
To: "Jay Blanchard" <jay.blanchard@niicommunications.com>
Cc: <php-general@lists.php.net>
Sent: Thursday, June 06, 2002 7:47 PM
Subject: RE: [PHP] multiple selects and $_POST['vars'] MORE
> This is not how they work, the name goes
> under <select> not within <option>.
>
> And as others have suggested, using an
> array is key here: name="bleh[]".
>
>
> http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple
>
> Regards,
> Philip Olson
>
>
> On Thu, 6 Jun 2002, Jay Blanchard wrote:
>
> > [snip]
> > The value selected is now in $a_name
> > [/snip]
> >
> > Or $_POST['a_name']
> >
> > HTH!
> >
> > Jay
> >
> > "Give a man a program, frustrate him for a day.
> > Teach a man to program, frustrate him for a lifetime."
> > "It's hip to snip!"
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>