Home  >  Article  >  Backend Development  >  php跳转的三种步骤

php跳转的三种步骤

WBOY
WBOYOriginal
2016-06-13 10:38:341021browse

php跳转的三种方法
方法一:使用PHP自带函数
Header("Location:网址");
说明:必须在网页没有任何输出的时候执行,要特别要注意空格。


方法二:利用meta
echo "";
说明:没有方法一的限制,但是如果前面有输出,则输出的内容会闪烁一下然后进入跳转到的页面。

方法三:利用Javascript语言
echo "";
echo " location='网址';";
echo "";

Statement:
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
Previous article:php 戏法方法Next article:phpnegap文件上传