Really simple but can't figure it out...
I created a change-password form with a new password field (account[npass1]) and another one to verify that the new password wasn't mistyped (account[npass2]). When I submit the form, the following code doesn't work in any case:
<?php
if ( !empty($account['npass1']) AND ($account['npass1'] == $account['npass2']) ) {
// set new password to $account['npass1']
}
?>
When I echo both values before the condition they match 100% !!!
Thanks!
Renato