$refurl = $_SERVER['HTTP_REFERER']; ?> print $refurl;?>