Professional Documents
Culture Documents
2) Objective:
You will learn:
To apply different control functions on your HTML forms using Javascript
Use of PhP (server side scripting) for collecting form data
Storing and retrieving your data into database using MySQL
1. For the same form as in Task-1 of Assignment-2, you have to now create a
Database and store the entered information into that. (3 marks)
2. For example, enter the information of at least 10 users to be stored into the DB.
(2 marks)
3. Next step is to query from the database (i.e. record of a user) and display it in the
same form fields. You can design another form for this purpose.
(a) For example, you want to retrieve record of a user with First name as“John”.
You enter the name “John” in the First Name of your text field. If that name
exists in the data base then all of its other information (DoB, Gender, email,
etc) shall be displayed in the respective fields else display the message “User
with that name do not exist. Try again)” (1 mark)
(b) Repeat the same steps to find users who are from “Canada”. (1 mark)
(c) Repeat the same steps to find users who are “male”. (1 mark)
(d) Repeat the same steps to find users who are “female”. (1 mark)
Note : When the search retrieves more than one records(e.g., users with same last
name) then your form should have navigation buttons (Next) and (Previous) to view
records from multiple users. (1 mark)