You are on page 1of 3

FINAL PROJECT CSEB 124: WEB PROGRAMMING

Question 1: LOGIN
1. Open the files given to you.
2. There are 4 files:
a. form.php -> registration form
b. register.php -> registration
c. list.php -> list and display registered students
d. config.php -> contain reusable info
e. my_database. sql -> database (please import into your PC)
3. Get the files from: http://metalab.uniten.edu.my/~faridah/project/
NOTE:
You are not allowed to change any style set to the form or table. Means, you are not
allowed to remove CSS from the files.
You are not allowed to use other files. You can only create new files when to cater for
functions that are not created by the given files. Example: edit info and delete/ cancel
registration.
You can have external JavaScript file (*.js) for form validation.
4. The first page is shown below. The page has no login page.

FIGURE 1
5. Create a login page. After login, display page shown in Figure 1. The user cannot
proceed to the above page is login failed.
6. The login page must differentiate between admin and user.
1

FINAL PROJECT CSEB 124: WEB PROGRAMMING


7. Assume that the user IDs and passwords of admin and already exist in database.
ACCESSING DIFFERENT PAGES
8. List of registered students will be displayed if login using admin account.
9. Form and list of registered students will be displayed if login using user account.
Question 2: FORM VALIDATION
10. The drop-down menu has only two committees. Add 2 more which are: Exhibits and
Sponsorship.
11. Create form validation for:
a. All form controls of form in FIGURE 1. If any of the fields left blank, notify the
user.
b. Student ID. Make sure the format is SW1234 OR SW 1234.
c. Hand phone number must be 010 1234567 OR 0101234567
Question 3: LOGIN, LOGOUT AND SESSION
12.
13.
14.

Try to access one of the files without go through login page. You can do that by
typing the URL address of the file in the IE address bar.
Your login will be considered success, if you can prevent above case from happen.
Create function logout from the page. Try to re-enter the page. Your logout will be
considered success if you cannot re-enter the page bypassing the login function.

Question 4: LIMIT THE NUMBER OF STUDENTS AND CHECK DUPLICATE ENTRY


15.
16.
17.

Limit the number of students that can register for committee Registration to 12.
Limit the number of students that can register for other committees to 8.
Make sure no duplicate entry. If SW1234 has registered before, the system must not
allow if the user enter SW 1234 OR sw 1234 OR sw1234 to register.

NOTE: Check the codes. Some of the solutions are already been given. You just need to modify
the codes.
Question 5: EDIT DETAILS (5 BONUS MARKS)
18.
19.

Create page that allow the students to edit all the details they entered before.
The student can only edit his/ her own detail.

Question 6: CANCEL REGISTRATION (5 BONUS MARKS)


20.
21.

Create page that allow the students to cancel their registration.


The student can only cancel his/ her own registration.

FINAL PROJECT CSEB 124: WEB PROGRAMMING


ASSESSMENT METHOD
1.
2.
3.

TWO questions will be asked to each of the group members to assess understanding of
the codes generate for project.
Each question contributes 5 marks.
Refer below table for the complete marking scheme.

MARKING SCHEME
Evaluated Aspects
Punctuality
Maintain styles of page
Login page
Differentiate between Admin and User
Accessing different pages
Form validation
Proper login and logout (session)
Limit number of students
Check duplicate entry
Smooth transition/ web page runs smoothly
Presentation
Q & A session

Marks
5
10
10
10
10
10
10
10
5
5
5
10
100

*** Bonus marks will be added if you manage to do the bonus questions.

LAB SETTING & PRESENTATION SESSION


*** Will be explained later ***
DEADLINE: 1 5 August 2011

You might also like