[Previous] [Contents] [Next]


Password Fields

Password fields are also very similar to text fields. The difference is that the characters that are typed into the field are not displayed. This is useful for entering passwords (thus the name password field). Using raw HTML, you can create password fields using the INPUT tag with TYPE password like this:

<INPUT TYPE=password NAME=password VALUE="" SIZE=8 MAXLENGTH=8>


Using CGI::Form, this is a call to the method password_field, as shown here:

$q->password_field( -name=>'Password', -default=>'', -size=>8, -maxlength=>8 );



[Previous] [Contents] [Next]