首頁  >  問答  >  主體

為什麼我輸入了refresh不會跳轉?請教大神支招!

<?php

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

# if(isset($_post['提交'])){

$username = $_post['username'];

$password = $_post['password'];

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

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

echo '使用者名稱密碼不能為空';

exit;

}

}else{

## clude_once 'templates/login.html';

}

?>


  2524 天前1486

全部回覆(1)我來回復

  •  

     2017-11-20 15:16:16

    找出問題了,是php的變數沒注意區分大小寫

    回覆
    0
  • 取消回覆