click.asp /click.php 点击跳转

来源:百度知道 编辑:UC知道 时间:2024/06/25 19:55:51
=========================================
<meta http-equiv="refresh" content="5;URL=http://baidu.com"> 这种的就不要回答了,这个是固定一个连接而已。
=========================================

click.asp /click.php 点击跳转
实现的效果是。
http://test.com/click.asp?url=http://baidu.com/
http://test.com/click.php?url=http://baidu.com/
http://test.com/click.htm?url=http://baidu.com/

当打开http//test.com/click.asp 后面没带参数的时候直接返回http://test.asp

当http://test.com/click.asp?url=http://baidu.com

先执行<script src=&q

现在页面执行
然后获取 url 值

最后在设置语句跳转到 http://baidu.com/

<?
if( $_GET['url']"))
{
执行判断统计
header("Localtion: $_GET['url']");
}
else
header("Localtion: $_GET['url']");

?>