Common Gateway Interface (CGI) describes a server-side program that receives and processes information sent from a web form.
CGI programs are the most common way to exchange and process information between a web page. They can be written in any practically any programming language and are run on web servers.
Action is a Form attribute that communicates with the common gateway interface (CGI) program to process.
For example, if you entered “bananas” to the following form:
Please process this:
The HTML form would send the input “bananas” to the cgi script. To the cgi script, the action would look like: ../processor.cgi?food=bananas