note 59442 added to reserved.variables
| From: | Jens at osu1 dot php dot net | Date: | Wed, 07 Dec 2005 04:24:57 +0000 |
| Subject: | note 59442 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99665@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59442
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59442&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59442&report=yes
Search -- http://master.php.net/manage/user-notes.php