Now that some of the design has been developed I decided upon adding some php code in order to user test both the front and back end of the project. I am still unsure about the implementation of a search bar therefore this will be left to a later date, instead I created for the login process.
Login
Although I have already created a jquery function for users to login into the system, I hadn't implemented the process that retrieves and matches the information. I created a file called processlogin.php where this information will run. Within the file I ask the system to match both the username and password within the database to the one entered by the individual. if the information matches those saved onto the database the system will log the individual onto their account and informs them that their login has been successful. if the information does not match the individual will not be logged in and an error message will appear for them to retry again.
Logout
Part of making sure that the website is secure and students documents are safe logging out of accounts are important. below is the code I have implement on a separate php file, here the user is able to log out of the system and then directed to the homepage.
Although I have already created a jquery function for users to login into the system, I hadn't implemented the process that retrieves and matches the information. I created a file called processlogin.php where this information will run. Within the file I ask the system to match both the username and password within the database to the one entered by the individual. if the information matches those saved onto the database the system will log the individual onto their account and informs them that their login has been successful. if the information does not match the individual will not be logged in and an error message will appear for them to retry again.
Logout
Part of making sure that the website is secure and students documents are safe logging out of accounts are important. below is the code I have implement on a separate php file, here the user is able to log out of the system and then directed to the homepage.
Further PHP implementation will be need before being able to carry out user testing, I will finalize the login and logout process within the next couple of weeks.
Sources
Bradley, A. n.d. PHP Redirect - Redirect Script - Redirect Web Page. [online] Available at: http://php.about.com/od/learnphp/ht/phpredirection.htm [Accessed: 14 Feb 2014].


No comments:
Post a Comment