We recommend several PHP methods for page jump. 1. how does PHP implement page jump? Phpheader (Location: http: www.baidu.com );? Header () is a php built-in function for page jump. 2. PHP implements page jump method 2
1. PHP implements the first method of page jump
- Header ("Location: http:
// Www.baidu.com ");
- ?>
Header () is a php built-in function for page jump.
2. PHP implements page jump. Method 2: Use
- jsecho "
- < script language="javascript">";
- echo "location.href='www.abidu.com'";
- echo "
- < /script>";
3. PHP implements the third method of page jump (The HTML method is used to redirect pages. this method is more practical. you can set the refresh time. it is recommended to use this method .)
- echo
- ("http-equiv='refresh'
content=0;URl='hehe.html'");
1. if you want to jump to other pages, you can add the index. php parameter? Id = 4 action = add2. parameters after retrieving other pages
- $id = $_GET[id];
- $action=$_GET[action];
The above is the specific PHP method for page jump.
Why? Php header (Location: http: // www.baidu.com );? Header () is a php built-in function for page jump. 2. PHP implements the second method of page jump...