The two methods for sending information from the form to the program are
GETGET puts the data entered into the form into an environment variable to be used by the program. Data entered with the method set to GET appears in the URL after a question mark when the form is ready to submit. Because there are limits to the amount of data that can be entered into an environment variable, the GET method will not work with forms that require long data entry.
POST
POST sends data to the program in the standard input. There is
no limit to the input length.
The format of the FORM tag, using the POST method for sending data
follows.
ACTION = cgi-bin/cgi-bin/form.server.name
points to the process that will accept input from your form and perform
whatever actions you have described.
The process is frequently defined as a script
file.
Most systems are set up so that form processing programs can only be
stored in particular directories.
This is a security measure because carelessly generated forms programs
could represent risks to the system.
To allow students to create and test forms handling programs, as simple tool is available at the following location:
The downside of this approach is that each of you will write to the
same file. So, you need to submit your form and then immediately
copy that file from the /tmp area to your own directory. If the content
looks really strange, it may be that two or more of you are testing at
the same time. Select a random number, count slowly to that number
and try again. (Ethernet collision resolution.)
cassel@vill.edu 1 September 1999