自丢网

标题: header('location:./ind.php');几秒后跳转/php页面停顿几秒后跳转 [打印本页]

作者: admin    时间: 2020-11-17 15:24
标题: header('location:./ind.php');几秒后跳转/php页面停顿几秒后跳转
header('location:./ind.php');几秒后跳转/php页面停顿几秒后跳转
代码如下:
  1. header("refresh:3;url=index.php");
  2.         print('您输入的密码有误,3秒后自动跳转,请重新输入...');
复制代码
案例代码:
  1. if(!empty($_POST)) {
  2.         //获取修改的id
  3.         $mima=$_POST['mima'];        //修改的标题
  4.         if($mima == '123456')
  5.                 header('location:./ind.php');   //修改成功跳转到list.php页面
  6.         else
  7.             header("refresh:3;url=index.php");
  8.         print('您输入的密码有误,3秒后自动跳转,请重新输入...');
  9.         exit;
  10. }
复制代码






欢迎光临 自丢网 (https://www.zidiu.com/) Powered by Discuz! X3.5