RE: [PHP] POST arrays?
| From: | Weber Sites LTD | Date: | Thu, 20 Apr 2006 12:46:02 +0000 |
| Subject: | RE: [PHP] POST arrays? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234355@lists.php.net to get a copy of this message | ||
Have a look at :
http://www.weberdev.com/AdvancedSearch.php?searchtype=title&search=serializ
berber
-----Original Message-----
From: William Stokes [mailto:kalles@operamail.com]
Sent: Thursday, April 20, 2006 1:17 PM
To: php-general@lists.php.net
Subject: Re: [PHP] POST arrays?
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)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php