up

Form Processing

Introduction

Forms are processed when an input button is pressed within the form.

The processing of the form is specified by the ACTION parameter in the <FORM> tag.


  <FORM [METHOD=method] ACTION=action>

    inputs

  </FORM>


ACTION parameter

This is the URL that processes the data from your form.


CGI Scripts

CGI scripts have two purposes

GET

This method has been withdrawn. See documentation on obsolete features for information on the GET method.

The GET method is the default on older versions of Mosaic. This generates massive url names as the contents of the forms are retained in the url names.


POST

When the submit button is pressed, the FORM details are sent to the URL as an environment variable rather than as part of the URL. This is the preferred method of invoking a script.

The data is encoded in key pairs of the form:

Special characters such as "=" and "&" in the "name" or "value" parts will be escaped i.e.prefixed with a \ character.

Inputs that were not checked, or contained no text are not included in the key pairs.