Professional Documents
Culture Documents
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
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.
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.
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.