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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to