I want the user to be able to change their password if they choose too. I can get most of it working i.e. the user enters a new password (CPassword) and then confirms their password (ConfirmPassword) but I want to have the feature where they can put in their existing password as well (called CurrentPass) and then it matches with the new password field (CPassword), if they dont match an error message is displayed. I have the following code for it but it keeps coming up with a parse error and I dont know why? Any ideas?:
if ($Cpassword != $ConfirmPassword)
{echo ("New Passwords do not match"
;} ?>
<?php if ($CurrentPass != $CPassword)
(echo "Current and New Password dont match"
?>
Hope this wasnt written to confusingly! Also any ideas how I encrypt them as I have tried many methods and non work, methods like MD5 etc... Thanks all!
if ($Cpassword != $ConfirmPassword)
{echo ("New Passwords do not match"
<?php if ($CurrentPass != $CPassword)
(echo "Current and New Password dont match"
Hope this wasnt written to confusingly! Also any ideas how I encrypt them as I have tried many methods and non work, methods like MD5 etc... Thanks all!