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.
- getgrades: simple form handling 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.
- showcookies:
Simple CGI that and prints out all the cookies it got and sends back a
form that can be used to tell the CGI to set a cookie
- pizzacookie: Same pizza ordering system,
but now uses cookie so you don't need to log in again.