1: 參考:http://blog.csdn.net/oscar999/article/details/19039355
<pre>描述:發(fā)送一個自定義的http報文,換句話說:PHP返回的數(shù)據(jù)的格式或字符集。
語法:void header ( string $string)
舉例:header(“content-type:text/html;charset=utf-8”) //設置PHP返回數(shù)據(jù)的字符集
header(“location:http:www.sina.com.cn”); //網(wǎng)頁跳轉(zhuǎn)
JS中的跳轉(zhuǎn):
<script>
window.location="http://www.csdn.net";
</script>
HTML跳轉(zhuǎn):<meta http-equiv="refresh" content="0; URL=http://www.csdn.net">
URL統(tǒng)一資源定位器。
http://www.sina.com.cn/index.php?username=yao&userpwd=123456#top
?之前是文件名稱。?之后為查詢字符串。
查詢字符串:?username=yao&userpwd=123456 //location.search
查詢字符串之后,就是錨點名稱。如:#top
</pre>
echo "<script>location.href='0322.php'</script>";
2:js跳轉(zhuǎn)刪除實例:注意里面js傳遞參數(shù)拼接:

Paste_Image.png

Paste_Image.png