This directory holds an example of a simple form-handling CGI program. The form includes JavaScript code for validating the fields in the form. A JavaScript capable browser will run the Javascript code to make sure that no submission is made until the user enters something in each field. Remember that not all browsers support JavaScript, so we have to do field validation in the CGI program anyway!!! The program displays student grades given a student's name and social security number. Files: request.html - a HTML form that can be used to submit queries to the getgrades CGI program. This form includes some Javascript code to do field validation at the browser. handleform.c - The source code for the CGI program. THe program validates requests (makes sure each field is entered) and then generates some random grades and sends them back as HTML. cgilib.c - source code for some CGI support routines, including the decoding of urlencoded requests. runfromshell - a schell script that sets up environment variables so that the CGI program can be tested from the command line.