Well I'm setting up my first database with username and password access to members area.
The problem I am having is that the md5 result from the registration form password doen't match the md5'd result of the logon form password - given that I am entering the same password.
using this code for the registration form / database table insertion:-
print ('before md5 ' . $arVals['ppassword']);
$arVals['ppassword'] = "'".md5($arVals['ppassword'])."'";
print (' after md5 ' . $arVals['ppassword']);
SHows a result of:- before md5 'dddd' after md5 'b7ac20233cf6b55bde4d324323b17abb'
However, in the same page of code:-
$inputdata = ('dddd');
$result = md5($inputdata);
print (' mdfive test ' . $result);
SHows a result of:- mdfive test 11ddbaf3386aea1f2974eee984542152
This is consistent with the result of the code I have used for entering the users password.
I dont understand why they should be different or how I can get arround this.
It may be helpful to convert back from md5 to original so I can see which one is the incorrect result for 4 d's entered as a password.