Home >Backend Development >PHP Problem >How to automatically jump to the page in php?
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 [
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
PHP page jump 2 , Meta
tag
< meta http-equiv="refresh" content="1;url=http://www.baidu.com">
PHP page jump 3. JavaScript (commonly used, recommended)
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!