Posted by Carl on 05/21/07 19:33
Akhenaten <jonkokko@gmail.com> writes:
> What's the most effective way to capture a URL to pass as a variable?
> I have a login function I want to modify to redirect the user back to
> the page they logged in from. I know how to do the redirect, just
> uncertain of capturing the URL.
>
You might want to have a look at the value of:
$_SERVER['REQUEST_URI']
Remember that these values are provided by the webserver, so
no guarantee is made that $_SERVER vars will be
available, but in practice they usually are.
Hope that helps,
Carl.
[Back to original message]
|