Assignment 7

Due Tuesday 12/8 at the start of the exam

This assignment is optional. If you do it, it will replace one of the first 5 assignments (not assignment 6).

You may use the parse-lib.pl file which contains functions named get_query and get_cookie. To access these, include the following statements in your scripts

require '/home/scsfac/downeyt/scripts/parse-lib.pl';
%query = &get_query;
%cookie = &get_cookie;

After these commands. %query will be the associative array of name/value pairs of any parameters sent to your script. This function only works for the GET and POST methods. Also, %cookie will contain all cookies for the script.

You are to create an HTML document in the root of your server named scripts2.html. On this page you will have links to two scripts: random2.pl and confirm2.pl

random.pl, this is like the previous assignment, but use cookies instead of hidden fields to maintain the counts of how many times the pages have been displayed.
confirm.pl, this is similar to the previous assignment, but less complicated.