Question: Part 1: In process_data.php file Create an associative array as a database in which stores user name (could be a email or a nick name).

Part 1: In process_data.php file

  1. Create an associative array as a database in which stores user name (could be a email or a nick name). When you print the array in a table, it should look like this Part 1: In process_data.php file Create an associative array as a
  2. Create log in system
    • Start PHP code with
    • Check if the submit button is hit or the request method sent is POST/GET
    • Write code to check the username and password. If the username and password are correct then the code prints You have successfully logged in! If the username and Password do not match the database, the message is Sorry, wrong information has been entered!
  3. Create register system
    • In the form, add another button which is for Register.
    • In process_data.php file, your code should check which button was hit. If the submit button was hit, it will execute the code written in number 2 section, and if the register button was clicked, write code to check the username. If the username is taken, print out a message: Sorry, your username is taken!, and if it is not taken, print out Welcome, username!.

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!