|
Posted by Akhenaten on 05/21/07 19:54
On May 21, 1:37 pm, Rami Elomaa <rami.elo...@gmail.com> wrote:
> Akhenaten kirjoitti:
>
> > 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.
>
> > TIA
> > ./JLK
>
> Study the output of <?php print_r($_SERVER); ?>. It's $_SERVER['...']
> something, I don't remember the exact key, but you'll see the complete
> list there.
>
> --
> Rami.Elo...@gmail.com
>
> "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
> usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Thx! The variable was $_SERVER['SCRIPT_NAME'];
Navigation:
[Reply to this message]
|