页面快速转向
- <?
- function turntopage($url="index.php",$info = "页面转向中…",$second=2){
- print "<html>n<head>n<title>页面转向中….</title>n";
- print "<meta http-equiv="refresh" content="$second;url=$url">n"; //开源代码phpfensi.com
- print "<style type="text/css">n<!–n";
- print "td { font-family: "verdana", "arial";font-size: 12px}n";
- print "a {color: #000000; text-decoration: none}n";
- print "–>n</style>n";
- print "</head>n<body>n";
- print "<table width="100%" border="0" align="center">n";
- //111cn.net
- print " <tr>n";
- print " <td height="200"> </td>n";
- print " </tr>n";
- print " <tr>n";
- print " <td align="center">n";
- print " <table width="60%" border="0" cellpadding="8" bgcolor="#aa9fff">n";
- //开源代码
- print " <tr>n";
- print " <td height="30" align="center">页面转向提示信息</td>n";
- print " </tr>n";
- print " <tr>n";
- print " <td align="center">$info</td>n";
- print " </tr>n";
- print " <tr>n";
- print " <td align="center">n";
- print " <a href="$url">如果你的浏览器不支持自动跳转,请按这里</a></td>n";
- print " </tr>n";
- print " </tr>n";
- print " </table></td>n";
- print " </tr>n";
- print " <tr>n"; //开源
- print " <td height="200"> </td>n";
- print " </tr>n";
- print "</table>n";
- print "</body>n</html>";
- exit;
- ?>
php重定向
- <?
- 方法一:header("location: index.php");
- 方法二:echo "<scrīpt>window.location ="$php_self";</scrīpt>";
- //开源代码
- 方法三:echo "<meta http-equiv="refresh" content="0; url=index.php">";
- ?>
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » PHP重定向和页面快速转向
波比源码 » PHP重定向和页面快速转向