If the password is entered incorrectly, the account is correct, or the account is shown as not being there, what should I write in the rules?
浮梦
浮梦 2017-09-08 14:17:34
0
2
1471

When the password is entered incorrectly, a password error will be displayed instead of not having the account

浮梦
浮梦

reply all(2)
phpcn_u2434
简单的写下吧 其他的自己改改
$name = $_POST[$name]; //账号
$psw  = $_POST[$psw]; //密码
if(!isset($name) || !isset($psw)){
	echo "请输入账号和密码";
}else{
	//连接数据库进行账号查询,返回结果假设为$name;
	if(!$name){
		echo '账号不正确';
	}else
	{
		//连接数据库进行密码查询,返回结果假设为$psw;
		if(!$psw){
			echo '密码不正确';
		}else
		{
			echo '登陆成功';
		}
	}
	
}


IT-小爬虫

First determine whether the account exists, and then determine whether the password is correct based on the existing user.
My rough opinion.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template