RE: [PHP] Problem with the HTTP_REFERER
| From: | PHPBeginner.com | Date: | Thu, 26 Apr 2001 14:23:35 +0000 |
| Subject: | RE: [PHP] Problem with the HTTP_REFERER | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50459@lists.php.net to get a copy of this message | ||
Just to add,
as Yasuo said, $HTTP_REFERER is VERY, VERY unreliable.
PHPBeginner.com logs user accesses into a database, $HTTP_REFERER is there
only 30% of times. This is because:
not everyone necessarily CLICKS,
not every browser supports it,
many are reading emails,
many are typing it in.... etc ...
never rely on it, make it ALWAYS optional, or your codes will be screwed up
without that you even know it.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: PHPBeginner.com [mailto:php-general@phpbeginner.com]
Sent: Thursday, April 26, 2001 11:13 PM
To: Rosen; php-general@lists.php.net
Subject: RE: [PHP] Problem with the HTTP_REFERER
$HTTP_REFERER does not work with javascript this way.
the value is as it would be inside your "back button", in other words, you
have to CLICK on a link, then you'll see it.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Rosen [mailto:rosen_dm@dir.bg]
Sent: Thursday, April 26, 2001 8:33 PM
To: php-general@lists.php.net
Subject: [PHP] Problem with the HTTP_REFERER
Hi,
I have BIG problem using "HTTP_REFERER".
I have two pages:
main.php:
<A HREF=test.php target= _blank>Click here</A>
test.php:
.........somecode
echo "<SCRIPT
language=\"javascript\">window.location.href=\"http://$web\";</script>";
$web - some website.
But on the $web site (some site) I can't get the REFERER !!!
--
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
--
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