1Could this be a typo? (two Ps in ppasscode, intended?)
2
3$_POST['ppasscode'];
4I would make sure and do:
5
6print_r($_POST);
7and make sure the data is accurate there, and then echo out what it should look like:
8
9echo hash('sha256', $_POST['ppasscode']);
10Compare this output to what you have in the database (manually). By doing this you're exploring your possible points of failure:
11
12Getting password from form
13hashing the password
14stored password
15comparison of the two.
1hash($hashingMethod, $dataToBeHashed, $BinaryOutputMode = false)
2
3some hashingMethod options:
4
5md5
6sha1
7sha256
8sha384
9sha512