RE: [PHP] HTTP_REFERER doesn't work with redirects...?

From: Date: Thu, 22 Feb 2001 11:14:37 +0000
Subject: RE: [PHP] HTTP_REFERER doesn't work with redirects...?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41133@lists.php.net to get a copy of this message
HTTP_REFERER work ONLY clicking a link which brings you to a page in the SAME window. this value comes from your browser and it is very unreliable Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Dhaval Desai [mailto:dhaval_adams@yahoo.com] Sent: Thursday, February 22, 2001 12:09 AM To: php-general@lists.php.net Subject: [PHP] HTTP_REFERER doesn't work with redirects...? Hi! I just want to get the URL of the page that is redirecting to the other page. For example.. I have two files login.php something.php Something.php has a line saying: <?php header ("Location: ./login.php"); ?> So When I open Something.php it automatically takes me to login.php. On the login.php page I have the following lines.... <?php echo $HTTP_REFERER; ?> It doesn't seem to work. I think the problem is because I don't click and go to something.php. I am getting redirected to the file./ SO is there nay other way I can get the URL of the file Which is redirecting. Thanx a lot Cheers!~ Dhaval Desai __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ -- 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

« previous php.general (#41133) next »