Re: redirecting with header(Location:blah
From: Daniel Tryba (news_comp.lang.php_at_canopus.nl)
Date: 01/26/04
- Next message: Michael Hoffmann: "Simple - UD Function with Select / Option"
- Previous message: Daniel Tryba: "Re: [Q] Automatic (i.e., scheduled) access to another web page"
- In reply to: Jeff: "redirecting with header(Location:blah"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jan 2004 22:46:16 +0000 (UTC)
Jeff <jeff_battle@yahoo.com> wrote:
> When I issue a "header(Location:/myscript.php?key1=value1&key2=value2);"
> the redirect happens just fine but the url in the address field keeps
> the previous url instead of the url I passed in the header call.
>
> This seems to happen only with I.E. Netscape does update the url
> correctly.
> I've also noticed that if I include the full path
> (location:http//blah) it works.
Relative location URLs are not defined by the HTTP/1.1 rfc, so the
results in browsers are undefined... use absolute urls instead.
-- Daniel Tryba
- Next message: Michael Hoffmann: "Simple - UD Function with Select / Option"
- Previous message: Daniel Tryba: "Re: [Q] Automatic (i.e., scheduled) access to another web page"
- In reply to: Jeff: "redirecting with header(Location:blah"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|