search

Home  >  Q&A  >  body text

Why doesn't it jump when I enter refresh? Ask God for advice!

<?php

header('content-type:text/html;charset=utf-8');

if(isset($_post['submit'])){

$username = $_post['username'];

$password = $_post['password'];

if(empty($username)||empty($password)){

header('Refresh:3;url=login.php');

echo '用户名密码不能为空';

exit;

}

}else{

include_once 'templates/login.html';

}

?>


  2644 days ago1578

reply all(1)I'll reply

  •  

     2017-11-20 15:16:16

    I found the problem, it is that the PHP variables are not case sensitive

    reply
    0
  • Cancelreply