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

From: Date: Thu, 25 Apr 2002 21:06:37 +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-94663@lists.php.net to get a copy of this message
On Thu, 25 Apr 2002, Pushkar Pradhan wrote: > I'm trying to do urlencode/urldecode: > my $layer[] contains: aban_railroads, airport_runways2001, blk_grps > this is what IE shows in my address window when I do the redirection: > > http://..../updateHTML.php?layer=a%3A3%3A%7Bi%3A0%3Bs%3A14%3A%22aban_railroads%22%3Bi%3A1%3Bs%3A19%3A%22airport_runways2001%22%3Bi%3A2%3Bs%3A8%3A%22blk_grps%22%3B%7D > It means that these 3 elements are there, however I tried both > 1. unserialize($layer) > 2. urldecode(unserial...) If you do need to do urldecode, you should do it before unserializing (since urlencoding was done last): unserialize(urldecode($_REQUEST['layer'])) miguel

« previous php.general (#94663) next »