What is a CGI script?
A CGI script is a program that runs on your web server that either responds to user input, generates HTML documents the fly, or – most often – both. Letting users of your system run CGI scripts they’ve written on your system is often a hazardous security hole; see the next question. It’s often useful to make available standardized CGI scripts to implement a mail to form and other things. Typically, your customers can get most of the functionality they need without custom programming.