contents.gifindex.gifprev1.gifnext1.gif

Creating a Link to your CGI program

In HTML, you use fill-out forms to collect information from the user and send it to your CGI program for processing. To construct a form in an HTML document, you use the <FORM> tag . As with many HTML tags, you need to place a beginning tag at the beginning of the form and a closing tag at the end of the form, in this case <FORM> and </FORM> respectively. More than one form can be in a single document, but forms cannot be nested.

Forms can contain single- and multiple-line entry fields, check boxes and radio buttons, list boxes, push buttons and hidden data. Every form has a "Submit" button that the user can press to have their data sent to the Web server for processing. This data is a list of NAME/VALUE pairs, one for each component of the form. The NAME and, optionally, the initial VALUE of each form component is specified in the HTML code. Then the user can fill out the form and modify the VALUEs.