不用参数的定向
echo "<script Language=\"JavaScript\">window.location='http:\\php2000.51.net'</script>";
实现GET操作:
echo "<script Language=\"JavaScript\">window.location='target.php?参数=".$_GET['参数']."'</script>";
echo "<script Language=\"JavaScript\">window.location='http:\\php2000.51.net'</script>";
实现GET操作:
echo "<script Language=\"JavaScript\">window.location='target.php?参数=".$_GET['参数']."'</script>";
方法一:header("Location: index.php");
方法二:echo "<script>window.location =\"$PHP_SELF\";</script>";
方法三:echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=index.php\">";
header("Location: index.php"); php内部的方式
不过好像默认在这之前不可以有输出