Question: it is php question. will rate the answer, Thank you so much Part 2: Log-in form Students can copy the same structure of their website

it is php question. will rate the answer, Thank you so much
Part 2: Log-in form Students can copy the same structure of their website and add more input field for a log-in form Requirements: Fom: o There should be at least 2 input fields for usemame and password. Given a json file as a database in which there are several usemames and paskvords. Student must: o Write PHP code to access data in the json file. Then, decode the json string to either a json object or an associative array. After the user submitted the form students must o saritize the inputs. Write a PHP function to retum sanitized data. o check if there is a match with one usemame and one password from the database. o If there is no match, print out an error message to user on the form o Ifit is a match, create an URL link with usemame as a URL parameter then redirect the user to a welcome page where it displays: Welcome
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
