RE: [PHP-WIN] passing arrays of objects
| From: | Doug Brewer | Date: | Thu, 01 Feb 2001 19:56:49 +0000 |
| Subject: | RE: [PHP-WIN] passing arrays of objects | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5326@lists.php.net to get a copy of this message | ||
try
$foo //array with serialized objects in it
$foo = rawurlencode($foo);
$url = "something/something/foobar.php?foo=$foo";
and on the next page
$foo = rawurldecode($foo);
$foo = unserialize($foo);
disclaimer: I didn't run thru these to see if it works
although it might be better to pass it as a post arg--isn't there a
length limitation on stuff passed via GET (?)
DB
| -----Original Message-----
| From: Conover, Ryan [mailto:Rconover@americanbridge.net]
| Sent: Thursday, February 01, 2001 1:22 PM
| To: php-general@lists.php.net; php-windows@lists.php.net
| Subject: [PHP-WIN] passing arrays of objects
|
|
| I was wondering if I can pass an array that has serialized
| objects to next
| page via url encoding
|
| $foo //array with serialized objects in it
|
| with the following encoding
|
| something/something/foobar.php?foo=echo($foo)
|
| and be able too unserialize $foo on the next page(foovar.php)
|
| ryan
|
| --
| PHP Windows Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
| For additional commands, e-mail: php-windows-help@lists.php.net
| To contact the list administrators, e-mail:
| php-list-admin@lists.php.net
|