PHP重定向的3种方式
程序员文章站
2022-06-04 18:52:31
复制代码 代码如下://1header("location: index.php");
//2echo '
//1
header("location: index.php");
复制代码 代码如下:
//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">";
推荐阅读