Web Page Development
What is the common gateway interface (CGI)?
p. 680 Fig. 3-19
Next
ØCommunications standard that defines how Web server communicates with outside sources
Step 3. When the user submits a request, it is sent to the CGI program. The CGI program contacts the database and requests information for the user. In this case, it looks for a movie titled The Wizard of Oz.
Step 1. The programmer stores the CGI program in a special folder on the Web server such as /cgi-bin.
Database
§CGI script—program that manages sending and receiving across CGI
Step 2. The Webmaster creates a link between the CGI program and Web page. When a user displays the Web page, the CGI program automatically starts.
Step 4. The CGI program receives information from the database, assembles it in an HTML format, and sends it to the user’s Web browser.