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.
cgi-binas 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_htmlif 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.
public_htmldirectory. Change the action attribute of the FORM tag. Make the file public. Make sure it is visible to a Web browser.
cgi-bindirectory. 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