Reply to Re: Capture the current page(url) into a variable?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация