PHP重定向的3种方式
内容摘要
复制代码 代码如下://1header("Location: index.php");
//2echo '<scrīpt type="text/javascript">window.location = "index.php";</scrīpt>';
//3echo "<META HTTP-EQ
//2echo '<scrīpt type="text/javascript">window.location = "index.php";</scrīpt>';
//3echo "<META HTTP-EQ
文章正文
复制代码 代码如下:
//1
header("Location: index.php");
//2
echo '<scrīpt type="text/javascript">
window.location = "index.php";
</scrīpt>';
//3
echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">";
代码注释