Little off-topic but shouldn't it be
if($password1 != $password2) { //stuff here}
??
Still a newbie at PHP but I learn as I go, :p.
Nah. PHP is a weakly typed language.
According to PHP:
NULL == false
false == 0
So what's the problem?
echo '000000' == '000'; -- 1 (true)
Which means that if someone types the password 00000000 and 000, == (!=) would say they are equal, but === (!==) would not.
That's immensely helpful actually. So basically what you're saying is that !== means "even if they are equal in value, they have to be a perfect match," right? So that would also mean that if you did 5+9 != 6+3 it would be different than 5+9 !== 6+3?