CGI script
A Common Gateway Interface Script (CGI Script) is a small program written in a language such as Perl, Tcl, C or C++, it functions as the glue between [[HTML]] pages and other programs on a [[web server]].
For example, a CGI script would allow search data entered on a Web page to be sent to the DBMS (database management system) for lookup. It would also format the results of that search as an HTML page and send it back to the user. The CGI script resides in the server and obtains the data from the user via environment variables that the Web server makes available to it.