php里类似asp中Response.Redirect页面跳转重定向有以下三种方法实现PHP页面跳转重定向:
关于PHP重定向:
方法一:header("Location: index.php");
方法二:echo "<script>window.location ="$PHP_SELF";</script>";
方法三:echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">";
header方法一般要求在页面没有输出任何内容前使用.要不可能会报错.