8 ){ $msg=$msg."Password must be more than 3 char legth and maximum 8 char lenght
"; $status= "NOTOK";} if ( $password <> $password2 ){ $msg=$msg."Both passwords are not matching
"; $status= "NOTOK";} if($status<>"OK"){ echo "$msg
"; }else{ // if all validations are passed. if(mysql_query("update plus_signup set password='$password' where userid='$_SESSION[userid]'")){ echo "
Thanks
Your password changed successfully. Please keep changing your password for better security
"; }else{echo "
Sorry
Failed to change password Contact Site Admin
"; } } } require "bottom.php"; ?>