时间:2010-8-9|作者: sunliguo|评论:No Responses|点击:|
PHP在经常要用到上一页的地址,如在设置要登陆跳转的页面上。
//跳转过来的URL,但是只有<a></a>或者form 跳转有效
$_SERVER[‘HTTP_REFERER’]
$_SERVER[PHP_SELF] //得到当前页面地址
$_SERVER[“HTTP_HOST”].$_SERVER[“PHP_SELF”].”?”.$_SERVER[“QUERY_STRING”] //这个可以得到带参数的地址
随机文章:
This entry was posted
on Monday, August 9th, 2010 at 11:02 and is filed under AMP.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.