Re: redirect to new page and pass variables too? (fwd)

From: Date: Wed, 24 Apr 2002 23:15:01 +0000
Subject: Re: redirect to new page and pass variables too? (fwd)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94467@lists.php.net to get a copy of this message
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

« previous php.general (#94467) next »