With this, you need a <form> tag. You will need this in order to pull off a form but there are attributes that are going to be needed. Some are required and some of course aren’t needed but can be useful. I’m going to give you a break down of the how the beginning of it should and keep in mind, it’s not going to have anything.

List of <form> tag's attributes
method Sends the information out mainly used for posting purposes.
action Giving the form a direction of where to go. It can be an email, a html-page (on your or another site), a PHP or ASP Script etc.
name Giving the form a name, requires for work with the form from scripts.
enctype This item is mainly used when performing the mailto action. It determines the type of email to send. It can send it in the format of a text/plain style. It's optional attribute.
target Name of window of frame where result of form data processing will be loaded. May have a values:
 _blank - new page will be loaded in new window.
 _self - new page will be loaded in current window (default value).

Examples

Here is the first example.

<form></form>

See above? This is how it should look at the beginning. Now I’m going to show you the required items and this is at the minimum.

<form method="post" action="mailto:someone@someone.com"></form>

This example above is the minimum and just using the mailto part as if you are sending an email. It can be used in other ways like for search engines or you can have it within the form send out an email directly to whomever you wish to have it sent off to. Look below and I will show you a brief sample as far as how it will work using PHP as part of the tool and then one with CGI. Keep in mind the urls are not real so do not look for them.

<form method="post" action="http://yoursite.com/next.php" name="newform" target="_blank">
Form data here
</form>

This is just mainly an introduction to how the <form> tag works and how it can be useful in the beginning. You should by now know how to get it started at least.

HTML Forms menu.