Learn HTML Code Tutorial Reference Guide

Attribute for <INPUT ...>
MAXLENGTH = integer

MAXLENGTH sets the maximum number of characters for text or password fields.

<FORM ACTION="../cgi-bin/mycgi.pl">

account ID: <INPUT TYPE=TEXT NAME="accountID" MAXLENGTH=4><BR>
password:   <INPUT TYPE=PASSWORD NAME="password" MAXLENGTH=8>

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>

gives us this form:

account ID:
password:




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial