note 59442 deleted from reserved.variables by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 25 Dec 2005 23:39:26 +0000 |
| Subject: | note 59442 deleted from reserved.variables by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100705@lists.php.net to get a copy of this message | ||
Note Submitter: Jens
----
Unfortunately IE (Internet Explorer) doesn't support HTTP_REFERER if the link is not a plain
html link.
I am using the following code at the end (!) of all php/html code (using an insert file):
<?php
$_SESSION['HTTP_REFERER'] = basename($_SERVER['PHP_SELF']);
?>
Then I just evaluate the session rather than the server variable.
Since $_SERVER['PHP_SELF'] delivers also the path information we have to cut this using
basename().
Verified in Firefox 1.0.7 and IE 6.