Password Confirmation in PHP
There is another nuance: the old and new passwords
should be entered into inputs with the type password.
This means the user will not see
what they entered for the new password,
which is prone to errors. It is necessary to make it
so that for the new password, both the password itself
and its confirmation are entered:
<form action="" method="POST">
<input type="password" name="old_password">
<input type="password" name="new_password">
<input type="password" name="new_password_confirm">
<input type="submit" name="submit">
</form>
Implement password confirmation when changing it.