Im trying to creat a password varification system where the user enters there password twice while making a user account but everytime the user enters there password it is telling them
'sorry, passwords dont match'
Im trying to say if there are two input boxes in the first one they enter the password in the seccond one they reenter there password... if they are the same it inputs the user name + password in the mysql database(i dont have the database code in the example) this is the statement I am using to test if the password varification is working... and this code always says that the passwords dont add up xD.
if($password == $repassword) {
header('Location: login.php');
exit;
} else {
$errorMessage = 'sorry, passwords dont match';
}