Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP/SQL
#4
Oh that's easy!

(password1 is your password, password2 is the one where you confirm it)

[lua]
if($password1 != $password2) {
header('Location: register.php');
}

if(strlen($username > 30) {
header('Location: register.php');
}
[/lua]

By the way, I would add in an error message. But that's how you do it.

[Image: chaosthegreat.png]
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)