The common gateway interface is the link between the web server and other programs on the system. CGI programs must be stored in directories specified in the server configuration (/web/cgi-bin/ for www.mcm.edu) or have particular extensions (.cgi for www.mcm.edu) and be written to work with the interface. The Perl language is popular for this purpose. Another popular approach is to use a server-side scripting language such as PHP.
We can interface in two ways:
Example: http://cs1.mcm.edu/cgi-bin/test-cgi?one+two+three. This simple encoding is used for files with an <isindex> tag in the <Head> and may also be used in forms
Data sent from a form is typically encoded as name=value pairs separated by & as in
email_name=rob&my_name=Robert
Guides |
HTML Primer | Form Overview
Search |
Computer Science |
Feedback
Site Map