Common Gateway Interface
A means for transferring information between an internet server and CGI program found on Web pages to scripts or programs run on a Web server, and vice versa.
Two common uses for CGI programs are:
Performing database queries in response to user input.
Creating dynamic Web pages by assembling HTML data on the fly. The most popular language for writing CGI programs is Perl, although almost any language could be used