Re: retrieving multi-select form values
| From: | Mark | Date: | Thu, 31 Jul 2003 18:14:46 +0000 |
| Subject: | Re: retrieving multi-select form values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157776@lists.php.net to get a copy of this message | ||
Not sure if you got a reply to this, but you need to make list an
array. Use list[] in your form as the variable name, and then
$_GET["list"] will be an array of your values.
--- Hank TT <no_spam@lomaji.com> wrote:
> Given the following querystring generated by, for example, a
> multi-select
> form list (menu), the contents of $_GET['list'] is expected to be
> an array
> holding 3 elements:
>
> http://awebsite.net/formlist.php?list=2&list=3&list=99
>
> Yet I only see the last value returned as a lone string. Is this
> expected?
>
> Thanks.
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to
defend everyone else's right to the same thing.
***************************************
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com