Yes, sort of. lets say that your page is 'http://www.php.net' and you want to make sure your visitor got there with a click, and not a refresh... first, get the referer... $_SERVER['HTTP_REFERER']; then do something like this... $refsite = file_get_contents($_SERVER['HTTP_REFERER']); $refsite = str_replace('"','',$refsite); $refsite = str_replace('"','',$refsite); if(stristr($refsite,'href=http://www.php.net') && !stristr($refsite,"url= http://www.php.net")) { // it came from a click } else { // maybe not a click } On 12/4/06, Mark London <mrl@xxxxxxxxxxxx> wrote:
Is there any way for PHP to know whether it is being called due to a browser refresh versus a mouse click? I think the answer is no but I just want to be sure. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php