Question: PHP PHP Syntax PHP Variables PHP Arrays PHP functions handling forms using PHP SQL SQL with PHP Exercise 1 Create a page called register.php The
PHP PHP Syntax PHP Variables PHP Arrays PHP functions handling forms using PHP SQL SQL with PHP
Exercise 1
Create a page called register.php
The page will contain a form with the following fields: First Name (Text Field)
Last Name (Text Field)
Email (email field)
Password (password field)
Mobile Address (text field)
Country (drop down menu) available countries are Jordan,Plaestine
The form method will be POST.
The page that will handle the data is called handle_register.php
handle_form.php will print the data once it is received.
Exercise 2 (Website)
Create a page called login.php
The page will contain a form with the following fields: email (email field) password (password field)
The form method is POST
The page that will handle the data is called handle_login.php
handle_login.php will check if the email is equal to test@example.com and the password is test123. If the email and password are correct then print to the user Welcome back. If either of the email or password is wrong then print Email or Password is wrong
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
