Answered step by step
Verified Expert Solution
Question
1 Approved Answer
$ 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started