Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


HTML Forms: Passwords

INPUT elements of type PASSWORD are just like text entry fields, except all characters are displayed with an asterisk *.

<FORM METHOD="POST" ACTION="/cgi-bin/web-exe">
	Enter your 8-character password:
	<INPUT	TYPE="password"
		NAME="your_password"
		SIZE="8"
		MAXLENGTH="8">
</FORM>
Enter your 8-character password:
NAME
VALUE
Using the VALUE tag, you can specify text which you want as default, such as a group password.

SIZE
Set the display size of the password entry field.

MAXLENGTH
To limit the number of characters the user can input. The form will give an error beep if the user tries to type in more than the allowed MAXLENGTH.
  • If you are going to use MAXLENGTH to limit the number of characters entered, be sure to specify the same SIZE as well, to show the user how much space they have.

  • Even though your default VALUE may be covered with asterisks, the user could see the actual text by viewing the HTML source of the document.


Up to => Home / Authoring / HTML / Forms




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers