querystring problem after using header("Location:xxx")

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2004
stevo
 
Posts: n/a
Default querystring problem after using header("Location:xxx")

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


Reply With Quote
  #2 (permalink)  
Old 08-30-2004
Alvaro G Vicario
 
Posts: n/a
Default Re: querystring problem after using header("Location:xxx")

*** 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 ;-)
--
Reply With Quote
  #3 (permalink)  
Old 08-30-2004
stevo
 
Posts: n/a
Default Re: querystring problem after using header("Location:xxx")

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 ;-)
> --



Reply With Quote
  #4 (permalink)  
Old 08-31-2004
Alvaro G Vicario
 
Posts: n/a
Default Re: querystring problem after using header("Location:xxx")

*** 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 ;-)
--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0