http_referer 獲取用戶來路實例
這是個php教程自來全局變量,所以我們不多介紹了,直接看實例
<?php
if (isset($_server['http_referer'])) {
print "the page you were on previously was {$_server['http_referer']}<br />";
} else {
print "you didn't click any links to get here<br />";
}
?><a href="refer.php">click me!</a>