if you have the globals setting in your ini file set to "on" then you can use: $HTTP_REFERER otherwise, I think, it's found in $_SERVER["HTTP_REFERER"] - just check for something like that in phpinfo();
-----Original Message----- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: [PHP] How can obtain referer's name? Hi! I want to know how can a script obtain the page name where it was linked. e.g., there's a link on page.html, and the link points to script.php, how can script.php know the name of page.html? Thanks in advance for all answer! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php