For the header function, I use most of the jump page and set character sets, the other functions used relatively little.
One, set character sets
In fact, we use the most in the HTML code in the <meta> tag inside the character set. The format is as follows:
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
This is the XHTML format because the META tag is a single label, so add '/' close <meta> tag later.
But if you are testing on this machine, you do not need to add such a long attribute, use the following simplified version.
<meta charset= "UTF-8" >
The above is set in the code of the HTML character sets, if it is pure PHP code, set character sets will have to use the header function. The format is as follows:
Header ("Content-type:text/html;charset=utf-8");
In fact, the contents of the header function is HTML <meta> tags in the content of the integration, just remember one can, the other does not have to remember.
Second, jump page
In addition to the jump page can be implemented with <a></a> tags, the format is as follows:
<!--<a href= "url" >urlName</a>--><a href= "http://www.cnblogs.com/-beyond/" > Search beyond</a >
You can also use the header function, at which point the JavaScript location object is used. The format is:
Header ("Location:url"); Header ("location:http://www.cnblogs.com/-beyond/");
PHP header () function