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.
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.