Example #1
0
    } 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!";
    }
}
if ($_POST['action'] == "searchpatient") {
    if ($log->displaypatientinfo($_POST['type'], $_POST['input']) == true) {
        //do something after finding patients...
    } else {
        //do something on failed patient search...
        echo "Failed to Find Patient!";
    }
}