Question: PART ONE For this assignment, create an html page that has a login form. The form should have 3 input elements -- 1. This should
PART ONE
For this assignment, create an html page that has a login form. The form should have 3 input elements --
1. This should have a type text for the user to enter UserName
2. This should have a type password (like text except cannot see the text that is typed in), for the user to enter password.
3. Submit button (type submit, as we did in class on 2/6).
The form method should be set to POST and the action should be a php script (saved in a .php file).
The php script checks the userName and Password. If it is one of the following, then the page shows "You have successfully logged in!"
User Name Password
elliez tr789ial
greatGuy abc123
blogger 23seventeen23
If the userName and Password do not match the above, the the page shows "Sorry, wrong information has been entered"!
PART TWO
In your php script declares two arrays (or an associative array or a two dimensional array!) that holds 10 user names and 10 passwords. Using a loop, (if you want to use array functions instead of the loop, that is fine) check to see if the user input matches one of the ten pairs. Print the same messages as in PART ONE above. (We will cover this on Wednesday 2/8 or Wed 2/15)
PART THREE
In your php code above, place a comment that (in under four sentences) explains what type of error message a website gives when logon credentials are incorrect, and why this is the message.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
