As I am using php 4.0.6 I don't have $_REQUEST available, and there is no equivalent in earlier vers. The foll. doesn't work: updateHTML.php: $layer = urldecode(unserialize($layer)); I get this: Warning: Invalid argument supplied for foreach() in /rstc/user1/erc/pushkar/gis/mcrgdl//updateHTML.php on line 68 i.e. the array is not available.
test.php: header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'].dirname($HTTP_SERVER_VARS['PHP_SELF'])."/".$relative_url."/"."updateHTML.php?layer=" . urlencode(serialize($layer)) ); Actually after doing a unserialize I see $layer as size 1 but when I try to echo the contents it's blank. On Wed, 24 Apr 2002, Miguel Cruz wrote: > On Wed, 24 Apr 2002, Pushkar Pradhan wrote: > > I was just reading urlencode.php, shouldn't the complementary function be > > urldecode() like the document. says, > > well unserialize must be working too, I believe you. > > I'm pretty sure the urldecoding happens automatically. If you get funny > results then it's worth sticking it in to see what happens. > > miguel > -Pushkar S. Pradhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php