howtothings.co.uk
How to make a "password" field for a website - Printable Version

+- howtothings.co.uk (https://www.howtothings.co.uk)
+-- Forum: Computing (https://www.howtothings.co.uk/forumdisplay.php?fid=4)
+--- Forum: Website Development, Implementation and General Webmaster Support (https://www.howtothings.co.uk/forumdisplay.php?fid=9)
+--- Thread: How to make a "password" field for a website (/showthread.php?tid=235)



How to make a "password" field for a website - Mark - 12-07-2010

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]


RE: How to make a "password" field for a website - danieljackson12 - 05-08-2010

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*


RE: How to make a "password" field for a website - Mark - 05-08-2010

(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.