Dr. Harrington's Page for Unix Lab
CGI Development
Comp 150 HomeThe
rest of the page gives links and brief descriptions for all the related
pages discussed in links her, plus a few more.
Example pages and scripts:
Simple CGI scripts with no input from a form:
Sample
Using the Overall Process
- adder.html
which uses adder.cgi (source)
which plugs into the template adderAnswer.html
(Note the %% in adderAnswer.html, because it used as a format
string.)
- namelist.html:
uses namelist.cgi (source)
- maintains data in a file and displays a variable number of lines.
Utility:
- file.html:
Allows
you to see the source code for any readable file on this web site
- index.cgi (source):
A real application used to speed up display of server
directories
without index html files. (This uses several library modules
we have
not discussed - you are not responsible for it!)
- dumpcgi.cgi (source)
to dump the name and value attributes for any form
- A simple script in actual use to stop spam on the Computer Science web site. To test, click to in the link get Dr. Harrington's email address.