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

2002-04-25 Thread Pushkar Pradhan
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:

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

2002-04-25 Thread Pushkar Pradhan
Regarding my previous post: I found out that $QUERY_STRING contains the query: 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 Now I am doing: $layer = unserialize($QUERY_STRING); or even

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

2002-04-25 Thread Miguel Cruz
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:

[PHP] redirect to new page and pass variables too?

2002-04-24 Thread Pushkar Pradhan
I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I achieved redirection using header(), but can't pass

[PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Pushkar Pradhan
My previous question: I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I achieved redirection using

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

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Pushkar Pradhan wrote: I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I

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

2002-04-24 Thread Pushkar Pradhan
Thanks Miguel, 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. On Wed, 24 Apr 2002, Pushkar Pradhan wrote: I am collecting some data on a page - test.php, ($layer which is an

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

2002-04-24 Thread Miguel Cruz
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

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

2002-04-24 Thread Pushkar Pradhan
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