喜悦国际村's Archiver

fbiso 发表于 2004-1-21 12:54 PM

如何获取当前url?(新)

test.php内容
<script>
this.location = 'deal.php?url=' + this.location.href;
</script>


这个是通过页面跳转将当前URL传递给deal.php处理,

我想实现的是:就在test.php中获取当前URL,就在test.php中进行处理,怎么办?

lras 发表于 2004-1-21 05:14 PM

$PHP_SELF

fbiso 发表于 2004-1-21 11:09 PM

这个不是获取地址栏信息哈

毛毛 发表于 2004-1-29 07:18 PM

哦!

没人回答

timwhoung 发表于 2004-1-29 09:36 PM

$_SERVER["QUERY_STRING"]返回“?”后的字串
$_SERVER["REQUEST_URI"] 返回deal.php?字串

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.