Home >Backend Development >PHP Tutorial >A brief analysis of php header jump_PHP tutorial
PHP’s header function can implement the META tag in HTML code with very little code
Here we only talk about using the header function to jump to the page
1. Page jump code in HTML code
HTML meta refresh refresh and jump (redirect) page
refresh attribute value--refresh and jump (redirect) pages
* refresh is used to refresh and jump (redirect) pages
* refresh appears in the http-equiv attribute, and uses the content attribute to indicate the start time and jump of the refresh or jump Redirected URL
* Reference URL: http://www.dreamdu.com/xhtml/refresh/
meta refresh example
Refresh this page after 5 seconds:
Redirect after 5 seconds Go to the Dream City homepage:
2. Using the header function in PHP
The above has learned about the code for writing jump (redirect) pages in HTML
php code example
header('Refresh: 3; url=http://www.jb51.net');