Re: Input field array ends up as "Array" string
| From: | Dan Delaney | Date: | Tue, 21 Jan 2003 15:51:04 +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-132434@lists.php.net to get a copy of this message | ||
Well, in the process of pulling out some code into a sample page to send to the list I found the problem. It was yesterday when someone who was testing it told me about the problem, but the problem must have been going on for a week, because a week ago I added code to a global include script that checked to see if magic quotes was on and then did a stripslashes on all the values in $_POST if they were. So that ended up doing a stripslashes on the string "Array" and replacing $_POST['interests']. So I expanded the routine that striped the slashes so that it checks first to see if the element is an array.
Cheers
--Dan