$temp[2] = $spo->day . "/" . $spo->month . "/" . $spo->year; $temp[3] = $spo->yearM; $temp[4] = array_values(get_object_vars(Place::getById($spo->place))); $spouses[] = $temp; } $result[] = $spouses; echo json_encode($result); } exit; } //this will get us the individual's data if ($action == 'getFileData') { $id = getRequest('id'); if ($id) { $result['file'] = $file = File::getById($id); $result['tags'] = $tags = File::getTagsById($id); echo json_encode($result); } exit; } //this will make the changes for us if ($action == 'makeChanges') { if (isset($_REQUEST['formtype'])) { $formtype = $_REQUEST['formtype']; } if (isset($formtype)) { if ($formtype == 'individual') { $check = $_REQUEST['individual']; $temp = Person::createInstance($_REQUEST); if ($check == "") { $response[0] = "There were no individuals selected. Select someone and retry the submission.";