Re: Trying to retrieve/confirm referrer URL in a PHP page/script
| From: | Jacob Kruger | Date: | Wed, 22 Feb 2012 08:18:25 +0000 |
| Subject: | Re: Trying to retrieve/confirm referrer URL in a PHP page/script | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-30785@lists.php.net to get a copy of this message | ||
Ok, will check out REQUEST_URI as well, but, after setting up a remote page to then go to the local page, I figured out that this one seems to retrieve it as well:
$_SERVER["HTTP_REFERER"]
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message ----- From: "Lester Caine" <lester@lsces.co.uk>
To: "php-windows" <php-windows@lists.php.net>
Sent: Wednesday, February 22, 2012 9:52 AM
Subject: Re: [PHP-WIN] Trying to retrieve/confirm referrer URL in a PHP page/script
Jacob Kruger wrote:As subject line says, it would be nice, sometimes, specifically in terms of form submission processing to maybe confirm the referring URL/server, and I have used similar things in past with classic ASP etc., but can't remember that exact syntax, but think it had something to do with something like a HTTP response referer header or something. Either way, I know there are collections of values like $_REQUEST, $_SERVER, etc., but not sure where to try find something like this, or if it's simply/easily possible/doable?http://php.net/manual/en/reserved.variables.server.php 'REQUEST_URI' -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php