Home > Backend Development > PHP Tutorial > php中有没类似ASP response.redirect的功能?解决办法

php中有没类似ASP response.redirect的功能?解决办法

WBOY
Release: 2016-06-13 10:00:07
Original
937 people have browsed it

php中有没类似ASP response.redirect的功能?
小弟初学php,   我做了个按钮,想转移到其他的web   page,应该用什么方法?   有没类似与asp中redirect的功能?谢谢各位大大

------解决方案--------------------
不好意思。想分心太急

header( "Location:http://www.sex.com ");
------解决方案--------------------
调用前不能有任何输出,或用输出缓冲.......
在PHP源程序里用啊!

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