Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment will require 3 short pages. A login page where the user enters their username and password. If the login is successful the user

This assignment will require 3 short pages.

A login page where the user enters their username and password.

If the login is successful the user is directed to a quiz page which displays their name and a very short quiz.

When the user submits the quiz they are directed to a results page that displays both their name and the quiz results. The results page also allows logging out.

A failed login takes the user back to the login page.

You should not be able to access the quiz page or the results page unless there has been a successful login. Attempts to directly access the quiz or the result should be redirected to login.

The first page, login.php. The login page (which should be named login.php, not sessionLogin.php) needs 2 textboxes, one for a user name and one for the password. The image below shows the possible list of user names that can successfully log in (Linda, Ralph, Sam). To simplify things, all users have the same password: password. As long as all necessary form elements are present you can style the form any way you want.

image text in transcribed

You need to authenticate the user by insuring the user's input credentials match an entry in following associative array which should be present in your code.

$allUsers = array( "Linda" => "password", "Ralph" => "password", "Sam" => "password" );

Page 2, quiz3.php. Once a successful login happens, your user should be redirected to a page named quiz3.php, were they can take a very easy quiz as shown here. The user's name should be displayed on this page, retrieved as a session variable.

image text in transcribed

Page 3, examResults.php. When the quiz is submitted it is submitted to a page named examResults.php where the quiz results are displayed. The user's name should have been carried as a session variable and should appear on the page along with their quiz score. examResults.php should also have a functioning logout button.

image text in transcribed

Login Page - CD localhost/sessionLogin.php 83 Login to CIS9 web page Name (Linda, Ralph, Sam) Password (password) Log in Login Page - CD localhost/sessionLogin.php 83 Login to CIS9 web page Name (Linda, Ralph, Sam) Password (password) Log in

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

ISBN: 0201844524, 978-0201844528

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I - -[ze dx

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago