Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: WelcomeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started