Re: Input field array ends up as "Array" string
| From: | Jason Wong | Date: | Tue, 21 Jan 2003 15:03:13 +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-132416@lists.php.net to get a copy of this message | ||
On Tuesday 21 January 2003 22:33, Dan Delaney wrote:
> 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?
Undo any configuration changes made recently, downgrade any recent upgrades
etc. To paraphrase Newtown's First Law of Motion:
"Any working system tends to remain in that state unless external force is
applied to it."
So what was it that you did yesterday to cause it stop working?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Isn't it nice that people who prefer Los Angeles to San Francisco live there?
-- Herb Caen
*/