CS 6314.002  – Practice Work – 5  

$35.00

Download Details:

  • Name: pw-5-ciblll.zip
  • Type: zip
  • Size: 777.61 KB

Category:

Description

5/5 - (1 vote)
  1. html – Create a form that contains two input fields on it: username and password. When the form is submitted, it should go to login.php.

 

  1. php

Check if both username and password are provided.  If user input is missing in one of these fields, redirect user to login.html.

If both is given, then check if the user exists in the database and password matches with the stored password. If the user exists and password matches, store user information (username) in session variable and redirect user to welcome.php. Otherwise, redirect user to login.html. You don’t need to display any error messages.

 

 

  1. php

Check if the user has signed in to the system: check if the session variable for ‘username’ is set. If it is set, welcome user by user’s fullname. Show the avatar for the user. Display the list of favorite movies for the user.

Otherwise redirect user to login.html.

 

 

DB name: PW5

Users (username, password, fullname, email, avatar)

Movies (movie_id, title, year)

FavoriteMovies (username, movie_id)