
The processing of the form is specified by the ACTION parameter in the <FORM> tag.
<FORM METHOD=method ACTION=action>
inputs
</FORM>
The url should be an executable program. you should place this binary in whatever you've defined as your cgi-bin directory (see the ScriptAlias entry in your srm.cnf file in the httpd configuraion).
METHOD can be one of the following:
The ACTION url should be a name of a backend program which parses the file and writes the contents to he output-file.
The names of the this file and the file the program is allowed to write new html into are passed to the program as environment variables.
field1=field1 contents&field2=field2 contents&...&fieldn=fieldn contents&
From: Eric Hall hallway@umcc.umich.eduOnce a form has been filled in, and the "Submit" button pressed, Mosaic sends the information as concatinated strings to the server. The server can then process the strings as STDIN. Here is an example of a form:
suppose that the user typed the following into the fields
name=This+is+one+field address=This+is+the+next+field phone=This+is+the+third+fieldWhen the server replies, the VERY FIRST line it must send is:
Content-type: text/html\n\nThe 2 return characters.. are VERY important. Examples