萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> php指定網址跳轉代碼實例

php指定網址跳轉代碼實例

<?
$s = $_SERVER['QUERY_STRING'];
if ($s == "http://www.baidu.com");
{
$s = "http://www.qq.com";
}
if ($s == "http://www.hao123.com");
{
$s = "http://.";
}
header("Location:".$s."");
?>

copyright © 萬盛學電腦網 all rights reserved