password_hash and verify problem
For some reason, this isn't supposed to print henlo yet but it does, anyways, here's my code: <?php $AdminPassword=password_hash("hi", PASSWORD_DEFAULT); if ($_POST["String"]==password_verify($_POST["String"], $AdminPassword)) { echo 'henlo'; } ?> <html> <head> <title> Password </title> </head> <body> <div id="container"> <div id="card-panel black-text"> <form action="" method="POST" class="modal-content"> <center><label for="String">Enter Password </label><br><input type="password" placeholder="Password" name="String" required><br> <input type="submit" type="submit" value="Check"> </form> </div> </div> </body> </html>