O'Reilly logo

Sams Teach Yourself CGI in 24 Hours, Second Edition by Rafe Colburn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Parts of CGI Programs

A CGI program can generally be broken down into three components. The program must process input, execute the code that gives the program its actual functionality, and generate output. The code that is sandwiched between the input and output can be thought of as the data processing functionality.

Take, for example, a program that sends form data to a particular email address. It must process the form data submitted by the browser, compose and send the email message, and then print an acknowledgement indicating that the email was sent. Or, let’s say you’re writing a program for your intranet that allows company employees to change their health coverage. Your program would read their form input, store their health coverage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required