当前位置: 代码迷 >> PHP >> header("location:test.php")跳转顺利需要注意的
  详细解决方案

header("location:test.php")跳转顺利需要注意的

热度:50   发布时间:2016-04-28 19:26:46.0
header("location:test.php")跳转成功需要注意的

header("location:test.php")跳转成功除了需要注意以下三点还有一个前提必须要注意:

1、location和“:”号间不能有空格,否则会出错。
2、在用header前不能有任何的输出。
3、header后的PHP代码还会被执行。


这个前提就是你的编辑器是在UTF-8无BOM格式下编写的,而不是UTF-8格式。切记!


  相关解决方案