<FORM> tag adds interactivity to your web documents. With the form tag you can add to your web pages a guestbook, order forms, surveys, get feedback or whatever.
The basic construction of a html form is
<FORM> begin a form
<INPUT> ask for information in one of several different ways..
<INPUT> ...there can be as many input areas as you wish
</FORM> end a form
Forms collect data and email it to the Email address mentioned. This can be done in two ways - using a CGI Script or using mailto action. The following code sends the data to an Email address mentioned in the mailto. You can send the data to more than one email address, separate them with commas.
The mailto forms can be a little troublesome and/or unreliable for a small percentage of your visitors. A mail script is the perfect solution to this problem.
Open Notepad and copy the following, save it some folder as form.html and call it in a browser.
<TITLE>My first web page with form</TITLE>
<FORM METHOD=POST ACTION="mailto:email@example.com" ENCTYPE="text/plain">
CGI Form Handling
The most reliable way to process your form data is to send it to a script on a server for processing. The most obvious place to look for such a script is your own ISP or web host. Most have a form mail script that you can send the data to.
Another option (only if you have access to your server's CGI bin) is to run your own script. Here again are places where you might be able to find a script.
Will form an input box having 30 pixel in length with Edward as studentname. The default value of size of the text input box is 20.
<INPUT TYPE=PASSWORD NAME="USER PASSWORD">
Very similar to the TYPE=TEXT is the TYPE=PASSWORD. It is exactly the same, except it displays *** instead of the actual input. The browser will send you the input, it just won't display it. SIZE, VALUE, and MAXLENGTH attributes work here also.