You are on page 1of 2

COMP-2707-91

Advanced Website Design


Summer-2022
ASSIGNMENT-3

Submission Deadline July 25th, 2022 by midnight.


1) Pre-requisites:
For this assignment, at least read the section on HTML, HTML Forms, Javascript,
PHP and SQL on w3shools. Link( https://www.w3schools.com/)

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

3) Instructions for Submission:


• You will create all your files using cs.myweb.uwindsor.ca for your work (assignments
and projects). A step-by-step tutorial on how to use myweb is provided under
the "Useful resources" section on the blackboard. You are encouraged to familiarize
themselves with the materials early on and if any issues arise in the use of myweb etc,
do report them early on to resolve the issue. Students are strongly encouraged to
benefit from GA/TA office hours to seek assistance in issues regarding the use of
myweb (if any).
Note: Make sure you check your login/authentication settings for myweb early on to seek
assistance on time. Reporting such basic issues (like account not authenticated on my
web) near the submission deadline will not be considered and marks will be deducted
if submissions not done as required. Therefore it is emphasized that you familiarize
yourself with the usage of myweb and seek assistance should that is required.
 You will execute the results of each question and prepare a word or pdf file to put
screen shots of your answers/code along with results.
• You also have to upload your code in a zip file on the black board.
 Make sure you provide a working link of your submission through myweb. How you
can obtain and provide the link for your work on my web (steps and details are
provided in the tutorial).
 Make sure that your report contains your name and id
Note: For this assignment, you will continue with the same forms that you created in
Assignment-1 and Assignment-2.

Task-1: Using PhP and MySQL (Total 10 Marks)

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)

You might also like