RE: [PHP] HTTP_REFERRER Problem
| From: | Jon Haworth | Date: | Thu, 26 Jul 2001 14:16:28 +0000 |
| Subject: | RE: [PHP] HTTP_REFERRER Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59746@lists.php.net to get a copy of this message | ||
Try $HTTP_REFERER instead of $HTTP_REFERRER (yes, I know it's spelt wrong,
but try it :-)
Cheers
Jon
-----Original Message-----
From: Shrout, Ryan [mailto:Rshrout@krauss-maffeicorp.com]
Sent: 26 July 2001 14:53
To: 'php-general@lists.php.net'
Subject: [PHP] HTTP_REFERRER Problem
Here is the code I am trying to use:
setcookie('admin2amdmb',mysql_result($user_result, 0,
Username),time());
$tdate = date ('Y-m-d h:i:s', time());
$success_query = "INSERT
INTO session (SessionID, IP, Login, Sucess, Date)
VALUES
('','$REMOTE_ADDR','$login','1','$tdate')";
$success_result = mysql_query($success_query);
echo $PHP_SELF; echo $HTTP_REFERRER;
Header ("Location: '$HTTP_REFERRER'");
This code is inside login2.php, which has a form and a flag. The form has
an action to: $PHP_SELF which works fine. But, for some reason
$HTTP_REFERRER is always blank! I want to use that to reload that page so
the cookie takes effect. What is going on?
Ryan Shrout
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net