Forms tags |
You can ask for information to your page's visitors by using the <FORM> tag. You have to define a FORM:
<FORM ACTION="something" METHOD="method"></FORM>
You need a program to handle these information. Usually web servers use a special directory called 'CGI-BIN', where these programs are located. If you can't acces to this directory, you have to talk with your server administrator. ACTION defines the URL where that program is located. Well, 'script' is a more correct word than 'program'. However you can also use an action to send mail, and you need no access to CGI-BIN to do that. Just put 'MAILTO:user@domain' into the ACTION field. For example: ACTION="MAILTO:mickey@mouse". METHOD may be: GET or POST
After defining the form, you have to define INPUT fields:
<INPUT TYPE="type" NAME="something" SIZE="number" VALUE="something">
Where:
| TEXT | Defines a text field (default) |
| PASSWORD | When the user type here, text isn't shown |
| HIDDEN | This is an hidden field. It contains the value you specified inside the HTML page |
| CHECKBOX | Defines a set of fields which users may check off |
| RADIO | Defines a set of mutually exclusive fileds |
| IMAGE | Defines a clickable image which submit the form |
| SUBMIT | Defines a button to submit the input data |
| RESET | Defines a button to reset the input data |
| Align | Checked | Max length | Name | Size | SRC | Value | |
| TEXT | O | N | O | O | |||
| PASSWORD | O | N | O | O | |||
| HIDDEN | N | O | |||||
| CHECKBOX | O | N | N | ||||
| RADIO | O | N | N | ||||
| IMAGE | O | N | N | ||||
| SUBMIT | O | O | |||||
| RESET |
Now let's see a few of samples...
Sample 1
Index Home Back Forward About Contact us!
Copyright (c) 1998-2006 Wowarea