For comparison, crypt function is used in a slightly different way. It accepts 2 arguments. if ( (crypt(str $user_input, $password_hash) == $password_hash) { ....... echo("Password Verified"); } You can go to this link for a better understanding! (Or refer to login.php in public directory of pset7) php.net/manual/en/function.crypt.php

Only top voted, non community-wiki answers of a minimum length are eligible