Re: Input field array ends up as "Array" string
| From: | Rick Emery | Date: | Tue, 21 Jan 2003 14:40:54 +0000 |
| Subject: | Re: Input field array ends up as "Array" string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132408@lists.php.net to get a copy of this message | ||
show us code
----- Original Message -----
From: "Dan Delaney" <ddelaney@powercreative.com>
To: <>
Sent: Tuesday, January 21, 2003 8:33 AM
Subject: [PHP] Input field array ends up as "Array" string
Hi every body. I have a form that was originally working just fine. It
had a series of input checkboxes with the same name ("interests[]").
These values then ended up in an array ($_POST['interests']), which I
then imploded into a comma separated list ($interests = implode(', ',
$_POST['interests']); ). Well, that was working just fine until
yesterday when I started getting an error on that implode function
("Bad arguments to implode()"). So I did a "gettype" on
$_POST['interests'] and it revealed that it is now ending up as a
"string" variable. So I printed it and it contains the string "Array"!
Anyone know what's going on here?
Thanks
--Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php