PHP code to get address bar information
Author:Eve Cole
Update Time:2009-06-05 16:24:54
<?php
//Get the domain name or host address
echo $_SERVER['HTTP_HOST']."<br>";
//Get the web address
echo $_SERVER['PHP_SELF']."<br>";
//Get URL parameters
echo $_SERVER["QUERY_STRING"]."<br>";
//Detailed address of the source web page
echo $_SERVER['HTTP_REFERER']."<br>";
?>