Display Password Input Box

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Nicoza
Forum Newbie
Posts: 11
Joined: Mon Oct 02, 2006 11:43 am

Display Password Input Box

Post by Nicoza »

I have a simple HTML form with input elements:

Code: Select all

<input type="text" name="wagwoord" size="10">
where users log in (evaluated with my PHP code). But instead of displaying the actual characters of the password field, as they type it in, I would like those characters to be displayed by the traditional ******.

How do I do that?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

not a php question...

Code: Select all

<input type="password" name="password">
Nicoza
Forum Newbie
Posts: 11
Joined: Mon Oct 02, 2006 11:43 am

[Solved] Display Password Input Box

Post by Nicoza »

Thanks Ninja

Sorry about the not being PHP part. I figured, since PHP needs HTML to gather info from users, and the fact that I thought to display * characters requires some php function or so, that it is indeed related. New to this!

But then, is there PHP alternatives for creating forms? If so, just point me to go an study it up.

Thanks anyway. Appreciate the help.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

nope... all php does is pre-logic before outputting standard (X)HTML. It adds absolutely no extra client-side functionality as it is ran on the server as opposed to the client's browser. That is why PHP stands for PHP: Hypertext Pre-processor... although that is a recursive and stupid acronym I know.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

:arrow: Client Side.
Post Reply