Re: POST arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> kirjoitti 
viestissä:55.F1.19715.4BA67444@xxxxxxxxxxxxxxx
> 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) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux