Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

TYPE = PASSWORD

PASSWORD indicates that the field is for typing in a password. PASSWORD works just like a TEXT type field, with the difference that whatever is typed is not displayed the screen (in case someone is watching over your shoulder or you have to leave the work station). Instead of showing what you typed in, the browser displays a series of asterisks (*), bullets (·), or something to show that you are typing, but not what you are typing. So, for example, this code:

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

name: <INPUT TYPE=TEXT NAME="realname"><BR>
password: <INPUT TYPE=PASSWORD NAME="mypassword">

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

gives us this form:

name:
password:

Note that PASSWORD fields are not sent encrypted, they are sent in the same manner as all the other elements on the form: in the clear. Note also that when you use PASSWORD you should also set the form METHOD to POST.

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire