예제 #1
0
    } else {
        //do something on failed password reset
        echo "Failed to Create User";
    }
}
if ($_POST['action'] == "changepassword") {
    if ($log->changepassword($_POST['oldpassword'], $_POST['newpassword1'], $_POST['newpassword2']) == true) {
        //do something on successful password reset
        echo "Successfully Change Password!";
    } else {
        //do something on failed password reset
        echo "Failed to Change Password!";
    }
}
if ($_POST['action'] == "addpatient") {
    if ($log->createpatient($_POST['title'], $_POST['language'], $_POST['fname'], $_POST['mname'], $_POST['lname'], $_POST['dob'], $_POST['sex'], $_POST['race'], $_POST['ethnicity'], $_POST['street'], $_POST['city'], $_POST['state'], $_POST['postal_code'], $_POST['country'], $_POST['phone_home'], $_POST['phone_cell'], $_POST['dl'], $_POST['nid'], $_POST['occupation'], $_POST['mothers_name'], $_POST['guardians_name']) == true) {
        //do something on successful password reset
        echo "Successfully Added Patient!";
    } else {
        //do something on failed password reset
        echo "Failed to Add Patient!";
    }
}
if ($_POST['action'] == "updatepatient") {
    if ($log->updatepatient($_POST['title'], $_POST['language'], $_POST['fname'], $_POST['mname'], $_POST['lname'], $_POST['dob'], $_POST['sex'], $_POST['race'], $_POST['ethnicity'], $_POST['street'], $_POST['city'], $_POST['state'], $_POST['postal_code'], $_POST['country'], $_POST['phone_home'], $_POST['phone_cell'], $_POST['dl'], $_POST['nid'], $_POST['occupation'], $_POST['mothers_name'], $_POST['guardians_name']) == true) {
        //do something on successful password reset
        echo "Successfully Updated Patient!";
    } else {
        //do something on failed password reset
        echo "Failed to Update Patient!";
    }