The sample CGI programs we will look at in class are here. Each
directory holds a complete example CGI program and (in most cases) an
HTML page that will invoke the CGI program. See the README files for
more details.
- isindex: shows how to use an ISINDEX tag with a CGI program.
- getgrades: simple form handling CGI program.
- getfile: shows how to use a file selection field, the browser submits the contents of a file to the CGI program.
- javascript: same CGI program as getgrades, but now the form includes
some Javascript code for validating the fields before submission.
- pizza: A Pizza ordering system that uses a
single CGI program to handle multiple forms, and keeps some state
information in hidden form fields.
- simp-cookie: Simple CGI that sets a cookie
and prints out all the cookies it got.
- pizzacookie: Same pizza ordering system,
but now uses cookie so you don't need to log in again.