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)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: PHPBeginner.com [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 11:13 PM
To: Rosen; [EMAIL PROTECTED]
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)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Rosen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 8:33 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]