CS 318
Feb. 9, 2000
The purposes of this lab are to gain experience with form/CGI interaction and CGI.pm. CGI.pm is used to read the form parameters and generate dynamic HTML. Work in groups of two, different from last time.
http://phoenix.goucher.edu/~kelliher/s2000/cs318/minmax.html
.
cgi-bin
as a
sub-directory of public_html
, which is a sub-directory of your home
directory. Make sure both directories are public. (First create
public_html
if it does not exist.)
~kelliher/pub/cs318/minmax.html
to your
public_html
directory. Change the action attribute of the FORM tag.
Make the file public. Make sure it is visible to a browser.
~kelliher/pub/cs318/minMax.cgi
to your
cgi-bin
directory. Make it publicly executable. Make sure it is
visible to a browser.
% echo "name=Tom" | ./minMax.cgi
% echo "name=Tom&list=1,5,9" | ./minMax.cgi