PHP重定向的3种方式

代码如下:

//1
header("Location: index.php"); 
<p>//2
echo '<scrīpt type="text/javascript">
window.location = "index.php";
</scrīpt>'; </p>
<p>//3
echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">";
</p>

相关推荐