Parašė Ponas24· 2011 Bir. 2 12:06:25
if($fname == '') {
$errmsg_arr[] = 'First name missing';
$errflag = true;
} else {
if($lname == '') {
$errmsg_arr[] = 'Last name missing';
$errflag = true;
} else {
if($login == '') {
$errmsg_arr[] = 'Login ID missing';
$errflag = true;
} else {
if($password == '') {
$errmsg_arr[] = 'Password missing';
$errflag = true;
} else {
if($cpassword == '') {
$errmsg_arr[] = 'Confirm password missing';
$errflag = true;
} else {
if( strcmp($password, $cpassword) != 0 ) {
$errmsg_arr[] = 'Passwords do not match';
$errflag = true;
}
}
}
}
}
}