function getContact() { if (isset($_POST["contactId"])) { echo json_encode(Loans::getContact($_POST["contactId"])); } }