php web program 3

Get perfect grades by consistently using Writerbay.net writing services. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

create and use cookies from within PHP.

Instructions:

1.  Create a page ‘Login.php’ that asks the user for a username and password. The validation simply needs to be that the username is not blank and the password contains the word ‘secret’. If the username or password is incorrect, the user will be re-prompted for their id and password (use a non-sticky form). If the values are acceptable/correct, the page will start a session and direct the user to the ‘Welcome’ page.

2.  Create a page ‘Welcome.php’ that will be used to greet returning users. The page will greet the user by their username and display the logo of their favorite football team if they have selected one (see step 5).

3.  If the user attempts to access the ‘Welcome’ page without having a valid session, they will be redirected to the login page.

4.  If the user attempts to access the ‘Login’ page while there is an active session, they will be redirected to the ‘Welcome’ page.

5.  Create a page that displays a listing of football teams and their logos. A valid user will be allowed to select/reselect one of these as their favorite team. Save their choice as a cookie. If a user attempts to access this page without being logged in, they will be redirected to the login page.

6.  The ‘Welcome’ page will provide a link to the page allowing the user to select their favorite football team.

7.  The ‘Welcome’ page will provide a link allowing the user to logout. When the user is ready to log out, end the session. Once the user has been logged out, they will be redirected to the ‘Login’ page.

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper