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 validatefields bbbb;
if empty$usr
$usrErr "Username is required";
$ true;
elseif pregmatch$pattern,$usr
$usrerr "Only letters allowed";
$ true;
else
Task e replace cccc with the proper superglobal variable to capture the password field
$ validatefieldscccc;
TASK using the pattern above, create a new pattern to validate the password field
$pattern ;
if empty$psw
$pswErr "Password is required";
$ true;
elseif pregmatch$pattern,$psw
$pswerr "Invalid Password";
$true;
else
$ false;
if $ logerr Can you complete the requirements of this code please?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
