Question: Question #1 Write a PHP page for login functionality. A sample login page is depicted in figure 1. You may choose a different layout and/or

 Question #1 Write a PHP page for login functionality. A sample

Question #1 Write a PHP page for login functionality. A sample login page is depicted in figure 1. You may choose a different layout and/or formatting for this page. Validation must be done for both email and password. The password must contain at least 1 uppercase character, 1 lowercase character, 1 digit, 1 special character and a minimum length of 8 characters. You must use "POST" method to submit all the user data and you must use appropriate input type and also use placeholders A file named canvas.php will collect the data from login page WELCOME This wil be an amazing experience Login Password LOGIN Figure 1. Sample login page from template.net Question #2 Continuing from the previous question, collect data from login page and validate the user using a text file. You may assume that there exists a file named "key.txt' at the source location which contains a set of username and passwords. Format of the data is up to you (you can create sets of username password separated by space on each line). You should use the file functionalities to make sure the file exists and read the file to verify username and password combination is correct. If it is not correct, you should reload the login page or show the current page i.e "canvas.php". Start the session if successful and set a session variable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!