Question: $ logErr = true; $display = display:none;; / / TASK c - replace aaaa with the proper superglobal variable to capture all the post array

$ logErr = true;
$display = "display:none;";
//TASK c - replace "aaaa" with the proper superglobal variable to capture all the post array elements
if (aaaa == "POST"){
$display = "display:block;";
//TASK d - replace "bbbb" with the proper superglobal variable to capture the username field
$usr = validate_fields (bbbb);
if (empty($usr)){
$usrErr = "Username is required";
$logErr= true;
} elseif (!preg_match($pattern,$usr)){
$usrerr = "Only letters allowed";
$logErr= true;
} else {
}
//Task e - replace "cccc" with the proper superglobal variable to capture the password field
$psw= validate_fields(cccc);
//TASK f- using the pattern above, create a new pattern to validate the password field
$pattern =";
if (empty($psw)){
$pswErr = "Password is required";
$logErr= true;
} elseif (!preg_match($pattern,$psw)){
$pswerr = "Invalid Password";
$logEr=true;
} else {
$logErr= false;
}
}.
if ( $ logerr Can you complete the requirements of this code please?
 $ logErr = true; $display = "display:none;"; //TASK c - replace

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!