Saving settings in a cookie


These pages allow you to select products in the entry pages and then view the list of selected products in the summary pages. The JavaScript here maintains a cookie containing the settings and uses this to reload the entry pages when you return to them. The summary pages use JavaScript or PHP to interrogate the cookie and report the results.

Finally, there is an enquiry page that displays the selected products and their descriptions and provides a form so you can request further information about these products. When submitted, this form causes an e-mail to be sent to the host and a copy to be sent to yourself.

The code here requires a reasonably modern browser with JavaScript and cookies enabled. It won't run on Opera 6 due to insufficient DOM support. I have tested using Opera 8 and IE 5.5 and all seems OK.


Home Entry 0 Entry 1 Entry 2
HTML Summary PHP Summary PHP Enquiry