CGIs

     A typical use for cgi is the processing of online forms. When the user fills in the boxes on the form and hits the SUBMIT button, the cgi program specified in the html will be run at the server, and the information in the boxes become available to the program as parameters. The program, being a program, can then do anything the programmer wanted it to do.

     "cgiemail", for example, is a canned program written in C that gathers up the contents of the input fields on the form and emails them to a specified destination, then sends a WWW page confirming of the action.

     "imagemap" is another common use for cgi. Here, the X-Y coordinates of the pointer on an image are correlated with a specification table, so that clicking on different parts of the image will result in different links being followed.

     Other CGIs might ask for a password, check the password, then access a database for requested information. What it does is up to the programmer, but we do ask that the CGIs are reasonable in their usage of CPU time and memory. While we do not require that they be submitted for approval first, out of control programs that hog the CPU will be hunted down and killed by our death robot.

     Standard CGIs reside in the cgi-bin subdirectory. Your CGIs may reside anywhere - but you must name them with the extension .cgi. See our CGI Programming section for more details on CGI.

 

Back To Top