The information in this article applies to:
*** WARNING **** *** WARNING **** *** WARNING **** *** WARNING **** This article is information for Support Professionals. In no way is this suggesting that you (the Support Professional) write, debug, interpret, or configure a customer's CGI script/program, command interpreter, or Web server. This article is meant to be educational. As a support professional, your boundary for custom CGI is showing the customer how to use the FrontPage interface for directing form output to the CGI program. *** WARNING **** *** WARNING **** *** WARNING **** *** WARNING **** SUMMARY
This article explains the functionality of Common Gateway Interface (CGI)
and how to use a custom CGI script as a form handler.
MORE INFORMATIONYou will need the following script to complete the steps in this article: http://www.speakeasy.org/~cgires/web2mail/#download OverviewIt is first important to understand what HTML forms and CGI scripts are. Although they are very different, they work closely together. A form is a web page with some additional markup tags that instruct a web browser how to display the various form elements, such as check boxes, drop-down lists, command buttons and text boxes. However, the web page itself does not process the data, nor does the web server. In fact, the Web server does not know what you want to do with the submitter's answers. A separate program or script, must process that data, in whatever way you want.HTML forms are just markup tags on a web page. The browser sends the information gathered by the forms via HTTP to the server. The server uses CGI to pass the values to the script or program. NOTE: CGI programs and scripts can be written in a variety of different languages, such as PERL, TCL, C, and shell scripts. Regardless of which language is used, the FrontPage interface is the same. When the submitter submits a form, the browser bundles the answers and sends them to the web server. The Web server passes this information to your script for processing. The CGI script knows how to read that bundle of data. Here are some important points about CGI:
Installing a CGI ScriptEach server is configured a little differently. The customer should ask their system administrator if CGI is enabled on the server. If the customer is the system administrator, he should read the documentation to determine this. The customer should also determine if user-installed CGI scripts are permitted. Some systems permit only the administrator to install CGI scripts. Then you will typically need to find out the following:
Building a Form in FrontPage
REFERENCESFor additional information and sample CGI scripts, please see the following World Wide Web site: http://www.speakeasy.org/~cgires/index.html Additional query words: form handler 98 2000RTMPartner
Keywords : |
Last Reviewed: July 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |