Question: Back - End Details ( 4 0 % ) - 8 0 points possible Index, Create Account, and Log Out Pages ( Up to 2
BackEnd Details points possible
Index, "Create Account", and Log Out Pages Up to points
The index.php file will ask the user to log in to the system with a log in form
If they're already logged in the home page will NOT show the log in form. It will show a "welcome to our store" type of message.
If they already have an account and they're not logged in then they will be able to log in; if not they will be able to create an account.
Create a link on the home page below the log in form that says "create account" that will redirect them to the createaccount.php page.
The createaccount.php page has them fill out a form for creating an account.
It won't allow them to use a username that already exists be sure to display a proper error message if they try.
Be sure to hash and salt their password before entering it in the database
The form on this page will have a field for username, password, "verify password", reset button, and "create account" button
Use realtime JavaScript validation and regex to:
Verify that the password and "verify password" match as they are typing.
Verify that the password contains at least one number and is at least characters long
Be sure to display user feedback messages on the screen as they type, eg:
Password must contain a number
Password must be characters long
Password and "Verify Password" do not match.
Disable the "create account" button until the above conditions are met
The logoutphp page will:
Destroy all sessions and cookies if you've created any
Redirect you to the home page showing the log in form
Catalog, and Product Pages Up to points
The catalog.php page will display a table not necessarily a
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
