Re: POST arrays?
| From: | William Stokes | Date: | Thu, 20 Apr 2006 12:43:14 +0000 |
| Subject: | Re: POST arrays? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234368@lists.php.net to get a copy of this message | ||
From here:
$arr_siirto = array((serialize('1','2','3'));
after removing the single quotes it started to work.
-W
"Stut" <stuttle@gmail.com> kirjoitti viestissä:4447804F.2080200@gmail.com...
> William Stokes wrote:
>
>>Is it bad just to remove the single quotes [ ' ] ?
>>
>
> From what? In fact, yes, almost certainly bad.
>
> -Stut
>
>>"Stut" <stuttle@gmail.com> kirjoitti
>>viestissä:44477C51.9020102@gmail.com...
>>
>>>William Stokes wrote:
>>>
>>>
>>>>OK. Must try that.
>>>>
>>>>BTW theres something odd about my serialize. I got it return something
>>>>but not quite what was expected :) Here's the result "a:3:{i:0;s:1:"
>>>>
>>>>
>>>You need to use htmlentities() (http://php.net/htmlentities) on the
>>>serialized data when putting it into the value attribute of the input
>>>tag.
>>>
>>>-Stut
>>>