Re: Redirecting a user
| From: | John Taylor-Johnston | Date: | Thu, 01 Jul 2004 15:55:12 +0000 |
| Subject: | Re: Redirecting a user | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189473@lists.php.net to get a copy of this message | ||
Apache can do this too, right?
I'm sure I saw a bit of code floating about?
Torsten Roehr wrote:
> "Shaun" <shaunthornburgh@hotmail.com> wrote in message
> news:20040701142309.16358.qmail@pb1.pair.com...
> > Hi,
> >
> > Please could someone tell me how I can redirect a user to the page they
> came
> > from including any query strings attached to the URL?
>
> header('location: ' . $_SERVER['REQUEST_URI']); exit;
>
> Regards,
> Torsten Roehr