Answered step by step
Verified Expert Solution
Link Copied!

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 = 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions