文章详情页
为什么我输入了refresh不会跳转?请教大神支招!
浏览:35日期:2022-06-10 13:24:04
问题描述
<?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';
}
?>
问题解答
回答1:找出问题了,是php的变量没注意区分大小写
上一条:mysql数据库是不是报10061错误下一条:为什么我写的PHP不行
相关文章:
排行榜
