RE: [PHP-WIN] Page names as variables?

From: Date: Tue, 23 Jan 2001 17:31:38 +0000
Subject: RE: [PHP-WIN] Page names as variables?
Groups: php.windows 
Request: Send a blank email to php-windows+get-5163@lists.php.net to get a copy of this message
> Is there an easy way to grab the page name or the referring page from > another page? I have a logon script which checks if they are > logged in and dumps them to a logon page if they aren't and I'd like to > have a way for them to get back to where they came from (ie. they walked > away from their desk and the session times out). > Try the $HTTP_REFERER Actually, for something like this, you are going to want to use: $REQUEST_URI as the former does not include any GET variables whereas the latter will. I do something very similar to what you are looking to do above and I found that $HTTP_REFERER just wasn't doing it for me... Chris

« previous php.windows (#5163) next »