Re: POST arrays?
| From: | William Stokes | Date: | Thu, 20 Apr 2006 11:16:30 +0000 |
| Subject: | Re: POST arrays? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234351@lists.php.net to get a copy of this message | ||
Can someone help me to get started with serializing? I think I did'nt quite
understand the manual here...
How to post to $PHP_SELF and read this simple array?
<?
//print the posted array here
print_r($arr_siirt_jouk);
//create the array and post it in another name
$arr_siirto = array(1,2,3);
<input type="hidden" name="arr_siirt_jouk" value="<?php echo
"$arr_siirto";?>">
?>
I tried:
<?
//print the posted array here
unserialize($arr_siirt_jouk);
print_r($arr_siirt_jouk);
//create the array and post it in another name
$arr_siirto = array((serialize('1','2','3'));
<input type="hidden" name="arr_siirt_jouk" value="<?php echo
"$arr_siirto";?>">
?>
Which, to my great surprice, didn't work :)
Thanks
-Will
"Barry" <barry@flyerheaven.de> kirjoitti
viestissä:55.F1.19715.4BA67444@pb1.pair.com...
> William Stokes wrote:
>> No other way?
>>
>>
>
> Over sessions or saving as file and loading it in the following page.
>
> --
> Smileys rule (cX.x)C --o(^_^o)
> Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)