CMPUT 410: Web-Based Information Systems

Assignment 4

CMPUT 410 (Fall 2004)

Due Date (by e-mail): November 5th, 2004 (16:59)
Percentage overall grade: 5%
Penalties: 20% off a day for late assignments
Maximum Marks: 10

Objectives

  1. Experiment with the creation and use of cookies in Perl and Javascript to store information about users and their choices.

You are asked to update the small application implemented in Assignment 2 in order to include cookies. Your application from Assignment 2 should still include all forms and input validations. However, all the collected information should be stored in cookies rather than hidden variable. Basically, you are asked to update your Javascript and CGI implementations to take advantage of cookies.

Only one version is required in which the input validation should be done with Javascript while the dynamic HTML page generation should be done with a CGI written in Perl.

You should create two cookies, one for the information collected for the customer identification, and one to represent the electronic cart. The cookies could be created using javascript or in your CGI program. However, it is your CGI program that should read all cookies at checkout time to generate the invoice.

See Assignment 2 for more details about the minin application.

When the customer identification page is displayed, if the cookie containing the customer information exists (the customer visited earlier), the fields should be initialized with the data stored in the cookie.

The input validation is the same as in Assignment 2.

All selected hotels and related information should be stored in a cookie.
Remember that the esthetics are not important in this assignment. Functionality is important.

Deliverables

This assignment is to be submitted via email to your TA. Send only one tar file that contains all that you are submitting:
  • A URL to an on-line running application with the functionality as described.
  • All the html files needed for the on-line running applications with the functionality as described.
  • The executable and source files containing the CGIs for the on-line running application with the functionality as described.
  • A short report explaining how you implemented the applications and the issues you noted.

HOME     Activities