Re: redirection question
- From: Michael Fesser <netizen@xxxxxx>
- Date: Wed, 31 Jan 2007 14:12:27 +0100
..oO(bob.chatman@xxxxxxxxx)
Heres an all purposes function. You will run into an issue with
headers if you use any printing before you send the header information
(same with cookies and the session too), this function will send the
request as a JS redirect if the headers have already been sent.
How ugly. The "headers already sent" problem can easily be solved
without using unreliable client-side scripting, either be thinking over
the structure of the code or by using output buffering.
Additionally a Location header requires an absolute URL.
Micha
.
- Follow-Ups:
- Re: redirection question
- From: Erwin Moller
- Re: redirection question
- References:
- redirection question
- From: Gunnar G
- Re: redirection question
- From: Krustov
- Re: redirection question
- From: GAMEchief
- Re: redirection question
- From: bob.chatman@xxxxxxxxx
- redirection question
- Prev by Date: Re: how do you send a lot of data between scripts
- Next by Date: Re: Dumping an array to a web page
- Previous by thread: Re: redirection question
- Next by thread: Re: redirection question
- Index(es):
Relevant Pages
|