Home >Backend Development >PHP Problem >How to automatically jump to the page in php?

How to automatically jump to the page in php?

coldplay.xixi
coldplay.xixiOriginal
2020-07-23 15:24:574984browse

How to automatically jump to the page in php: 1. Use the [header()] function, the code is [void header (string string [bool replace[]]]; 2. Use the Meta tag, the code is [

How to automatically jump to the page in php?

php method to automatically jump to the page:

PHP page jump 1. header()Function

void header (string string [,bool replace [,int http_response_code]]);

The header of php cannot have any data output

How to automatically jump to the page in php?

PHP page jump 2 , Metatag

< meta http-equiv="refresh" content="1;url=http://www.baidu.com">

How to automatically jump to the page in php?

PHP page jump 3. JavaScript (commonly used, recommended)

How to automatically jump to the page in php?

Related learning recommendations: PHP programming from entry to proficiency

The above is the detailed content of How to automatically jump to the page in php?. For more information, please follow other related articles on the PHP Chinese website!

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