时间:2021-07-01 10:21:17 帮助过:3人阅读
if(isset($_POST["username"])=""){echo"kong";}elseif(isset($_POST["username"])!="admin"){echo"kong";}
if(isset($_POST["username"]) && $_POST["username"] == '') {
echo"kong";
}elseif(isset($_POST["username"]) && $_POST["username"] != "admin") {
echo"kong";
}
if (isset($_POST['username']) && (empty($_POST['username'])
------解决思路----------------------
$_POST['username'] !== 'admin')) {
echo 'kong';//空或不等于admin
} elseif (isset($_POST['username']) && $_POST["username"] == 'admin') {
echo "yes";//管理员
}