Answers for "how to check password and confirm password in php"

0

php password verify

<?php
// See the password_hash() example to see where this came from.
$hash = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq';

if (password_verify('rasmuslerdorf', $hash)) {
    echo 'Password is valid!';
} else {
    echo 'Invalid password.';
}
?>
Posted by: Guest on February-02-2022
7

how to check confirm password in php

if ($_POST["password"] === $_POST["confirm_password"]) {
   // success!
}
else {
   // failed :(
}
Posted by: Guest on January-11-2021

Code answers related to "how to check password and confirm password in php"

Browse Popular Code Answers by Language