Question: Q.4. Given the html code of the form below, write PHP code to do the following: (i) Assume that connection with database and server is

Q.4. Given the html code of the form below, write PHP code to do the following: (i) Assume that connection with database and server is already established. (ii) Retrieve the form data into PHP variables (ii) Run the SQL query to insert the user input into the database. PHP Hints: if ($_SERVER['REQUEST_METHOD") == "POST"), $_POST["variableName"], $conn->query(queryVariable), "INSERT INTO TableName (ColumnName, ColumnName, ...) VALUES ('...','...',...) "; (PLO:GA3,CLO:1,C2 - 10 marks) Login: Password: Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
