CS 325
Feb. 6, 2010
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 individually, or in groups of two, on phoenix.
http://phoenix.goucher.edu/~kelliher/f2006/cs325/minmax.html
.
cgi-bin
as a
sub-directory of public_html
, which should be a sub-directory of
your home directory. Make sure all three directories are readable by all.
(First create public_html
if it does not exist.)
I've relaxed phoenix's Web server's permissions to allow you to execute CGI
programs from this cgi-bin
directory. This is the only
directory from which you'll be able to have the Web server execute CGI
programs. This permission will be extended until the end of the semester.
~kelliher/pub/cs325s10/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 Web browser.
~kelliher/pub/cs325s10/minMax.cgi
to your
cgi-bin
directory. Make it publicly executable. Make sure it is
visible to a Web browser.
% ./minMax.cgi name=Tom
% ./minMax.cgi name=Tom list=1,5,9