Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

LAB

2. Exercises with JavaScript and PHP




1. Create a simple login form:
a. Username: E-mail address
b. Password: minimum length 8 characters, must contain uppercase,
lowercase, number.
c. Submit button: “Login”

2. Form validation
• Validate the form using JavaScript
• Validate the form again using PHP

3. Place a button (a link) with the label “Login” either in the header container or
navigation bar of your web page (layout) from LAB 01.

When you click on the Login button, the form appears in the body part of your web
page.

4. Create a new file with the name “login_processing.php” to receive the input
values from login form.

You might also like