xammp里,Notice:Undefined index: userName in D:\xampp\htdocs\login.php on line 3
代码是:<?php$allowUser=array("abcd"=>"abcd1234");If(!isset($allowUser[@$_POST['userName'...
代码是:
<?php
$allowUser = array("abcd"=>"abcd1234");
If(!isset($allowUser[@$_POST['userName']]) || $allowUser[@$_POST['userName']] !== $_POST['userPsw']){
echo"账号或用户名不正确!";
}else{
echo"登录成功!";
}
?> 展开
<?php
$allowUser = array("abcd"=>"abcd1234");
If(!isset($allowUser[@$_POST['userName']]) || $allowUser[@$_POST['userName']] !== $_POST['userPsw']){
echo"账号或用户名不正确!";
}else{
echo"登录成功!";
}
?> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询