欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

PHP重定向和页面快速转向

程序员文章站 2022-04-27 14:25:10
...


function turntopage($url="index.php",$info = "页面转向中...",$second=2){
print "n

n页面转向中....n";
print "n"; //开源代码phprm.com
print "n";
print "nn";
print "n";

//phprm.com

print "

n";
print " n";
print " n";
print " n";
print " n";
print " n";
print " n"; //开源phprm.com
print " n";
print " n";
print "
n";
print " n";

//开源代码phprm.com

print "

n";
print " n";
print " n";
print " n";
print " n";
print " n";
print " n";

//phprm.com

print "

n";
print " n";
print " n";
print "
页面转向提示信息
$info
n";
print " 如果你的浏览器不支持自动跳转,请按这里
n";
print "n";
exit;
?>

php重定向

方法一:header("location: index.php");
方法二:echo "window.location ="$php_self";īpt>";

//开源代码phprm.com

方法三:echo "";
?>

文章地址:

转载随意^^请带上本文地址!