A brief analysis of php header jump_PHP tutorial

WBOY
Release: 2016-07-21 15:05:54
Original
696 people have browsed it

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');

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327654.htmlTechArticlePHP’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 do it. Page jump 1. Page jump code in HTML code HTML meta refre...
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