|
|
• Html Course |
|
| ||||||
| • CGI And Mailto: |
|
A form can be sent by using a CGI script or a simple "mailto:" email address code.
In order to use a CGI script to send your form, configure. Please read Matt's instructions on how to use the CGI script, as we will not be getting into that here. |
| • The First Line Of Code |
|
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
If you use a CGI script you will have a URL to your
<FORM ACTION="URL of CGI Server">
Here is an Example of a CGI server's URL:
Next add the METHOD. POST is used more often,
ENCTYPE set by default. We will use a different ENCTYPE
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,
Here is our first line of code as a "mailto:" form
<FORM ACTION="mailto:whoever@nowhere.org" METHOD="POST" ENCTYPE="text/plain">
Here is our first line of code as a "mailto:" form
<FORM ACTION="mailto:whoever@nowhere.org?no_signature=true" METHOD="POST" ENCTYPE="text/plain">
|
| • The Closing FORM Tag |
|
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.
<FORM ACTION="mailto:whoever@nowhere.org" METHOD="POST" ENCTYPE="text/plain">
|
|
|
Draac.Com Is Hosted By ValueWeb
Register UK domain names at Domain Names UK
|
|
| Advertise
| Link To Us |
| Status/Updates | Privacy Statement |
| Copyright © 1999-2003 Draac.Com
© All Rights Reserved. |