Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a Password into Asterixes?

Status
Not open for further replies.

andy98

Programmer
Jul 7, 2000
120
GB
Does anyone know if it is possible to display a Password in a form field as asterixes instead of the actual password?
 
I owe you one anyway. :)
I'm no expert as I'm only learning myself but I believe that if you use the following, it should work:

<INPUT TYPE=&quot;Password&quot; Name=&quot;blahblah&quot;> and so on.

Simple as that... I think ;)
 
Sorry DrDan2, I think you are wrong about that!

I need to have the password value displayed as ****** instead of displaying the actual value.

------------------------------------------------------
<tr><td width=&quot;5%&quot;>Password</td><td><input type=&quot;text&quot; name=&quot;password&quot; value=&quot;#Trim(password)#&quot; class=&quot;tdt&quot;></td><td></td></tr>
------------------------------------------------------

Anyone got any ideas?

Regards
Andy
 
Well I had a similar issue, but all I did was change the TYPE from &quot;text&quot; to &quot;password&quot;. It then displays the asterisk symbols instead of the typed in text. try it.

Password: <INPUT TYPE=&quot;Password&quot; Name=&quot;Password&quot;>



 
Yes That's It, Sorry DrDan2, you are right! ;o)

I have used that before and forgotten all about it. As soon as I saw your post, I remembered.

It's the simple things that catch you out eh?

Cheers

Nice one

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top