Please fill in all three fields'); } elseif ( sha1($_POST['new1']) != sha1($_POST['new2'])) { echo('class="error">password verification error'); } else { echo('class="ok">OK, password changed from ' . $_POST['old'] . " to " . $_POST['new1']); } ?>

Old password:
New password:
Retype new password: