Cookies Assignment

This assignment requires you to create two web pages.  These are referred to below as the display page and the form page.

1. Create the form page with a link to the display page.  The form page will contain a form.  Based on user input to the form, write a permanent cookie file using JavaScript.

2. When the user visits the display page, words and images should be displayed that reflect the choices made by the user on the form on the form page.  Do this by reading the cookie in JavaScript and then using the value of the cookie to control the information that is displayed in the display page using the JavaScript document.write command.  Not all the content of the display page needs to be written by JavaScript; only the portions that reflect the form choices.

3. If the user subsequently makes other choices on the form page, these choices will determine some of the words and images  displayed on the display page, just like it did after your initial visit to the form page.

Revised: November 23, 2002