Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP/SQL
#8
Okay, I put the passowrd1 in the database (hashed of course) BUT

When they fill out a form:

[lua]
<html>
<!--Form to register-->
<form name="register action="register.php" method="post">
Username: <input type="text" name="username" maxlength="30" />
Password: <input type="password" name="password1" />
Password Again: <input type="password" name="password2" />
<input type ="submit" value="Register" />
</form>
</html>
[/lua]

As you can see I have 'Password' (password1) and 'Password Again' (password2) then, when they hit register, it sends username and password, and ID in the database. NOT password2. Password2 is checked when they register ONLY. Why would you need it it in the database. Just check it when they load the page.
[Image: chaosthegreat.png]
Reply


Messages In This Thread
PHP/SQL - by Dignity - 08-12-2011, 09:19 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)