passing multidimentional arrays between pages

From: Date: Sat, 01 Jul 2000 20:49:40 +0000
Subject: passing multidimentional arrays between pages
Groups: php.general 
Request: Send a blank email to php-general+get-4296@lists.php.net to get a copy of this message
Hi all I'm having some problem passing multidimentional arrays between two php files. ie The array is created in search.php3 and I want to pass all its contents to edit.php3 According to something I saw in the mailing list archives, I should be able to use serialize and unserialize. I assume I also have to urlencode and urldecode. in search.php3 I've got the following code $passinfo = urlencode(serialize($info)); ?> <form method=post action=edit.php3?passinfo=<?echo $passinfo?>> in edit.php3 I've got $info = unserialize(urldecode($passinfo)); according to gettype the variable $info is nolonger an array, its a boolean. I'm obviously missing something here, can anyone enlighten me on how I do this procedure? Thanks in advance for your help. Regards Nick

« previous php.general (#4296) next »