This is a discussion on querystring problem after using header("Location:xxx") within the alt.comp.lang.php forums, part of the PHP Programming Forums category; On "page1.php?aaa=1" I do a redirect to remove the variables in the querystring that I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On "page1.php?aaa=1" I do a redirect to remove the variables in the
querystring that I don't need anymore: header("Location: page1.php?bbb=1") ; exit() ; This works, after the redirection $_GET["bbb"] really exists. BUT my browser still display "page1.php?aaa=1" as the URL!!!! I want it to show the new URL "page1.php?bbb=1"! I tested this with Firefox 0.9.3 and IE6. I have to do this redirection after a "back" from the browser, if it can help. Thanks for the help guys |
|
|||
|
*** stevo wrote/escribió (Fri, 27 Aug 2004 14:36:57 GMT):
> This works, after the redirection $_GET["bbb"] really exists. > BUT my browser still display "page1.php?aaa=1" as the URL!!!! I want it to > show the new URL "page1.php?bbb=1"! > > I tested this with Firefox 0.9.3 and IE6. I've just tested and both Mozilla 1.7.2 and Explorer 6 change the location bar. Do you surf through a proxy or something like that? -- -- Álvaro G. Vicario - Burgos, Spain -- Questions sent to my mailbox will be billed ;-) -- |
|
|||
|
No proxy.
The problem is when I test with really simple pages, it works. The location bar changes. But with some of my pages it doesn't. The location bar stays the same. I guess I should try to find out what is different in some of my pages that makes them react that way.. Thanks for your help anyway "Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote in message news:9ayg62dhui7s.9u93l7mqhufo$.dlg@40tude.net... > *** stevo wrote/escribió (Fri, 27 Aug 2004 14:36:57 GMT): > > This works, after the redirection $_GET["bbb"] really exists. > > BUT my browser still display "page1.php?aaa=1" as the URL!!!! I want it to > > show the new URL "page1.php?bbb=1"! > > > > I tested this with Firefox 0.9.3 and IE6. > > I've just tested and both Mozilla 1.7.2 and Explorer 6 change the location > bar. Do you surf through a proxy or something like that? > > > -- > -- Álvaro G. Vicario - Burgos, Spain > -- Questions sent to my mailbox will be billed ;-) > -- |
|
|||
|
*** stevo wrote/escribió (Mon, 30 Aug 2004 21:32:00 GMT):
> No proxy. Weird. Well, you know, some ISPs have transparent proxies for web browsing. Maybe it's the proxy itself the one that asks for the redirected page so the browser actually never knows about it... God knows :) -- -- Álvaro G. Vicario - Burgos, Spain -- Questions sent to my mailbox will be billed ;-) -- |