1.PHP获得前一个页面的URL地址
<?php
echo $_SERVER['HTTP_REFERER'];
?>
2.PHP获得当前页面的URL地址
<?php
echo $url = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
?>
<?php
echo $_SERVER['HTTP_REFERER'];
?>
2.PHP获得当前页面的URL地址
<?php
echo $url = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
?>