Blogger Information
Blog 2
fans 0
comment 0
visits 1082
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php中页面跳转
兴华的博客
Original
558 people have browsed it

第一:使用脚本跳转:

echo "<script LANGUAGE='JavaScript'>";echo "location.href='select_all.php'";echo "</script>";


echo '<script>url="select_all.php";window.location.href=url;</script>';


这个没调好,但是这个方法可以实现:

<script>url="select_all.php";window.open(\'url,\'\',\'_self\');</script>
其中 更改\'_self\' 就可以实现跳转限制原窗口还是父窗口,子窗口或者新窗口.第七种:利用php自带函数发送头部信息


第二:消息头重定向:

$url = "https://www.baidu.com";if (isset($url)){    Header("HTTP/1.1 303 See Other");    Header("Location: $url");    exit; //}


header("Location: select_all.php");


第三:html特性:

echo "<meta http-equiv=\\"."Refresh\\"." content=\\"."0; url=select_all.php\\"."> ";


第四:html标签:

/** * //if (!isset($url)) exit;?><!--<HTML>--><!--<HEAD>--><!--    <META HTTP-EQUIV="REFRESH" CONTENT="5; URL=--><?// echo $url;?><!-->--><!--</HEAD>--><!--<BODY>--><!--</BODY>--><!--</HTML>--> */



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post