• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a "password" field for a website
#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


Messages In This Thread

Forum Jump: