
|
 |
 |

The password field is similar to the text field, the only difference is that no matter what characters you enter the field will display an dot's or asterisk (*) instead. This prevents others from viewing what you entered into this field. The basic password field code will look like this:
<INPUT TYPE="password">
You can further customize it by adding more attributes to the <INPUT> tag.
The SIZE attribute specifies the width of the text field.
The MAXLENGTH attribute is the maximum characters that can be entered in this field. If you do not specify a value, the user may keep typing even when there is no more room to display all the characters.
The NAME attribute assigns a name to this input field. The program you will use to process this information will need to know the name of the field.
The VALUE attribute is what will display initially in the text field, you may leave it empty or display a message in here that the user can type over. It will display as a string of dots or asterisk's (*), so this is hardly ever set for the password field, but whatever the user types in becomes the value and will be passed to the Script.
The TABINDEX attribute specifies the order in which the field will be activated by pressing the tab button.
Here is the code for an example of a complete password field:
<FORM ACTION="#">
Enter your password (4-9 characters): <INPUT TYPE="password" NAME="pass" VALUE="" SIZE="10" MAXLENGTH="9" TABINDEX="1">
</FORM>
Here is how it will look:
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|