Home > Backend Development > PHP Tutorial > header("location:test.php")跳转顺利需要注意的

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

WBOY
Release: 2016-06-13 11:54:12
Original
1065 people have browsed it

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

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

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


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


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template