Re: multiple checkbox/select problem
| From: | Daniel Convissor | Date: | Fri, 21 Jul 2000 01:49:46 +0000 |
| Subject: | Re: multiple checkbox/select problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7502@lists.php.net to get a copy of this message | ||
Hey Patrick:
"m. wright" wrote:
>
> You're on the right track. $eventdate returns "Array". $eventdate[0]
> will return the first letter of that, which is "A". What's happened is
> that $HTTP_GET/POST_VARS is an array and $eventdate is an array within
> that array.
Mike's suggestion seemed a bit excessive. What I do with arrays submitted by
forms is:
while ( list($Key, $Val) = each($eventdate) ) {
# Do what you want with the $Key and $Val variables...
}
Enjoy,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409