Creating forms for user input


The form is the HTML portion of the CGI interface. It is generated through the use of the form tags, <FORM ACTION="url of CGI program">...</FORM>. HTML documents can contain more than one instance of the form tags.

The following sections are excerpted from the NCSA CGI documentation.


This is a template for creating a WWW/Form interface using a Perl script to process the form.

Your first name

Your last name

Your email address

Enter your comments here:

The following checkboxes should be coded with different "NAMES." Any number of the checkboxes can be toggled on or off.

This is checkbox 1. It should be checked by default.
This is checkbox 2. It should not be checked by default.

The following radio buttons should be coded with the same "NAME" and therefore only one can be on at once. You can have any number of radio buttons sharing a name. The radio buttons are differentiated by the "VALUE" associated with the button.

This is a radio button
This is another radio button

- Clear and start over - Submit request


[Common Gateway Interface] [Outline] [Programs]