http://blog.csdn.net/liu_james/archive/2008/03/12/2172864.aspx

直接粘过来吧! 

第一种:
echo "< meta http-equiv=\\"Refresh\\" content=\\"秒数; url=跳转的文件或地址\\" > ";
其中:XX是秒数,0为立即跳转.refresh 是刷新的意思.Url 是要跳转到的页面.

第二种:利用script实现
<script>url="submit.php";window.location.href=url;</script>

第三种:利用script实现,所不同的是使用 open 语句.且可以限制原窗口还是父窗口,子窗口或者新窗口.
<script>url="submit.php";window.open(\'url,\'\',\'_self\');</script>
其中 更改\'_self\' 就可以实现跳转限制原窗口还是父窗口,子窗口或者新窗口.第四种:利用php自带函数发送头部信息
header("Location: Url");

速度最快,功能强大...但是有个问题必须指出:如果在使用这个函数前已经有html输出,哪怕是一个空格.那么在页顶会显示错误信息.. 

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2021-07-22
  • 2021-10-11
  • 2022-12-23
  • 2021-10-15
  • 2021-09-04
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案