• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a "password" field for a website
#1
This is a simple tutorial on how to make a password field on a website so that when you type your password it shows on the screen as **** and not your actual password.

[code=html]
<html>
<body>

<form action="">
Username: <input type="text" name="username" /><br />
Password: <input type="password" name="password" />
</form>

</body>
</html>
[/code]
  Reply
#2
In order to create a password on a Web site, use PHP to program the back end of the password field. Learn about adding two inputs, including a password input, to a Web site with help from a software developer in this free video on Web sites.

Read more: How to Create a Password on a Web Site: Computer Software & Tech Support *link removed*
  Reply
#3
(05-08-2010, 01:25 PM)danieljackson12 Wrote: In order to create a password on a Web site, use PHP to program the back end of the password field.

To use this in conjunction with sending data such as a contact form or a login then you'd need to have it sent out to a php script by using code such as:

[code=html]
<form name="contact_form" method="post" action="mailer.php" onsubmit="return validate_form ( );">
<input type="submit" value="Submit" name="submit" onsubmit="return validate_form ( );"/>
[/code]

In this specific example i got from a contact form on my other website, it's validated using Javascript before it's even sent. That's what the validate_form ( ) is.

This tutorial is on how to make a password field using HTML, and that's what it does. PHP is another story.
  Reply


Forum Jump: