[eluser]vincej[/eluser]
Hi - I'm collecting Post data off a form where there are validation rules in place. I need the "Confirm_Password" to compare to "Password". Then I also need it to be converted to Md5 for entry into the DB. The compare step is too much for the vaildation function to cope with in the form.
so my plan is to compare the text passwords and then before the successful pw is sent to the DB it be be encrypted to Md5.
BUT I can not figure the correct syntax to make this work:
For example, an incorrect version is:
Code:
'password' =>($_POST['Password'],md5),
this throws an error.
Can someone please help me please with the correct syntax for this, or failing that inform me how to make the valkidation rule work when comparing 2 passwords and convberting to md5 ?
Many Many Thanks !!