if($username=="") { $login_domain_error="Enter User Name"; }
if(isset($_POST['passwd'])) {
$login_p_error="Enter Password";
When I enter the above two validation, it triggers the validation errors, without form submission using PHP
What exactly is wrong
Thanks Jean
好吧,您正在检查$_POST['passwd']
是否已设置,如果是这种情况,则定义一个错误。
What's your error message?
Anyway, you should change if(isset($_POST['passwd'])) {
to if(empty($_POST['passwd'])) {
and add a }
to that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.