2).at the place where you process these passwords (you will have to collect the two passwords from the form), do something like this:
Code: Select all
$password = $_POST['password'];
$retypedpassword = $_POST['retypepassword'];
if ($password === $retypedpassword)
{
echo "The passwords match";
}
else
{
echo "The passwords do not match";
}