Which METHOD you use to send your form this will determine what ACTION you will be using. We will first talk about using the CGI script to send your form. Your first line of code for your form will be the opening FORM tag, the ACTION, the METHOD and ENCTYPE. This is true no matter which METHOD you choose to use to send your form.
Important Note:POST must be capitalized, otherwise the method defaults to GET.
The default is: application/x-www-form-urlencoded. Most of the time the default is the proper encryption, so you can leave this value out of your code and it will be set by default. Again, check with your web page host if another encryption type is needed.
If you use a CGI script you will have a URL to your cgi-bin to submit the form to. That URL will be used in the ACTION part of the form code.
<FORM ACTION="URL of CGI Server">
Here is an Example of a CGI server's URL:
http://www.yourdomain.com/cgi-bin/formmail.pl
Next add the METHOD. POST is used more often, but check with your web page host to be sure. ENCTYPE set by default. We will use a different ENCTYPE later when we talk about "mailto:" as the ACTION.
So now our first line of code looks like this:
<FORM ACTION="URL of CGI Server" METHOD="POST">
If you choose to use an email "mailto:" as the ACTION, your first line of code will include an ENCTYPE in order to receive the form in a format you will be able to read.
Here is our first line of code as a "mailto:" form with the proper ENCTYPE to send the form.
Note to MSNTV And Computer Users:
If you intend to have MSNTV users submitting your form,
you should include ?no_signature=true into your "mailto:"
form. This will disable MSNTV's HTML email signatures.
MSNTV's HTML email signatures will block all data being
sent to you in your form.
Here is our first line of code as a "mailto:" form with the MSNTV code to disable their HTML email signatures.
<FORM ACTION="mailto:whoever@nowhere.org?no_signature=true" METHOD="POST" ENCTYPE="text/plain">
It is a good idea to close your FORM tag at this point. This way you will not forget it because the form will not work without this closing FORM tag.
The closing FORM tag is:
</FORM>
This is how our form code looks at this point. We will be using the "mailto: form for our example form.
<FORM ACTION="mailto:whoever@nowhere.org" METHOD="POST" ENCTYPE="text/plain"> </FORM>