if (!empty($_POST["Password"])) { if (!empty($_POST["Email"]) and !empty($_POST["New_pass"])) { $email = $_POST["Email"]; $old_pass = $_POST["Password"]; $password = $_POST["New_pass"]; if (strlen($_POST["New_pass"]) >= 6) { echo $wallet->Change_Account_setting($session, $email, $old_pass, $password); } else { echo "Please enter minimum 6 Characters In Password!"; } } else { if (!empty($_POST["New_pass"])) { if (strlen($_POST["New_pass"]) >= 6) { $old_pass = $_POST["Password"]; $password = $_POST["New_pass"]; echo $wallet->Change_Account_Password($session, $old_pass, $password); } else { echo "Please enter minimum 6 Characters In Password!"; } } else { if (!empty($_POST["Email"])) { $email = $_POST["Email"]; if (!empty($_POST["Password"])) { $pass = $_POST["Password"]; echo $wallet->Change_Account_Email($session, $email, $pass, $session); } else { echo "Please Enter Account Password to change Setting!"; } } } }