The breakdown
Obviously i have used a table which would allowed me to position each element. Start with the opening <form> tag and finish with the closing </form> tag. Inside this tag use the
action attribute , which points to the location of your cgi script. Then you must add either 'get' or 'post' in the
method attribute.
Next add the 1st input field. Input fields have no closing tag and are one line fields. The textarea field which can be as many lines as you like
does have a closing tag. The hidden input field is sometimes used to pass information to the cgi script. And finally the submit input field was added which is like an 'ok, send it now' button.
If the idea of learning to implement cgi scripts is too daunting for you at this stage, just replace the url in the
action="" attribute with a mail to link (
Chapter 4 ).
action="mailto:you@youraddress.com"
Choose an attribute for the
input tag from the drop down menu below to see its description.
A common mistake when using the
textarea tag is to forget the closing tag.