i encrypt password with Md5 method. now to change update page i add value to password field! if user not changed password send password with md5 to mysql database and this false ( double md5 password )
Example :
//change Name lastname country ......... more
<input name="pwd" value="<?PHP echo $row["pwd"]; ?>" /> //password value is MD5 . This Value for Not Empty field.
now if User type new password worked and update mysql with new Md5 password ! but if user not changed this form send
<?PHP echo $row["pwd"]; ?>
and update code( update.php ) encrypted this password so double encrypted .
Thanks For Any Help.