Log in function

The log in function is essential for this project, with this complete it will allow a favourites button to be added.

Screen Shot 2015-04-20 at 02.48.45

This is the code used to log in which includes a session which displays a message if the username or password is wrong. By saying username or password is wrong it clears any verification issues.

Screen Shot 2015-04-20 at 03.00.22

This is the code for logging out of the website, which when log out button is pressed, it will just destroy the web page, and take you back to the original webpage.

Screen Shot 2015-04-20 at 03.06.05

This is how to register on the website. It will need all fields to be occupied with text for it to register you on to the system, which is stored on my the database, if all fields are filled out it will display a message that you are now registered or that your username already exists in which case you need to create a new one.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s