$creditcard_t = $filter->getCreditCard_T();
    $creditcard_average = $filter->getCreditCardAverage();
    $email = $filter->getEmail();
    // obtenemos parametros
    $lender->setBusiness($type_business);
    $lender->setForeclosure($foreclosure);
    $lender->setLandlord($landlord);
    $lender->setYears($years);
    $lender->setMonths($months);
    $lender->setTotalMonths($total_months);
    $lender->setBankStatements($bankstatements);
    $lender->setBankAverage($bank_average);
    $lender->setNSF($nfs_average);
    $lender->setCreditCard($creditcard);
    $lender->setCreditCard_t($creditcard_t);
    $lender->setCreditCardAverage($creditcard_average);
}
if (isset($_POST['id_merchant'])) {
    $id_merchant = $_POST['id_merchant'];
    $type_business = $_POST['type_business'];
    $foreclosure = $_POST['foreclosure'];
    $landlord = $_POST['landlord'];
    $years = $_POST['years'];
    $months = $_POST['months'];
    $bankstatements = $_POST['bankstatements'];
    $bank_average = $_POST['bank_average'];
    $nfs_average = $_POST['nsf'];
    $creditcard = $_POST['creditcard'];
    $creditcard_t = $_POST['creditcard_t'];
    $creditcard_average = $_POST['creditcard_average'];
    $email = $_POST['email'];
if (isset($_POST['id_lender']) && !is_numeric($_POST['id_lender'])) {
    foreach ($_POST['business'] as $names) {
        $string_business = $string_business . ', ' . $names;
    }
    $lender->setName($_POST['name']);
    $lender->setBusiness($string_business);
    $lender->setForeclosure($_POST['foreclosure']);
    $lender->setLandlord($_POST['landlord']);
    $lender->setYears($_POST['years']);
    $lender->setMonths($_POST['months']);
    $lender->setBankStatements($_POST['bankstatements']);
    $lender->setBankAverage($_POST['bank_average']);
    $lender->setNSF($_POST['nsf']);
    $lender->setCreditCard($_POST['creditcard']);
    $lender->setCreditCard_t($_POST['creditcard_t']);
    $lender->setCreditCardAverage($_POST['creditcard_average']);
    $lender->setEmail($_POST['email']);
    $lender->insertLender();
}
if (isset($_GET['edit'])) {
    $lender->Lender($_GET['edit']);
    $id_lender = $lender->getIDLender();
    $name = $lender->getName();
    $no_business = $lender->getBusiness();
    $no_business_array = explode(",", $no_business);
    $foreclosure = $lender->getForeclosure();
    $landlord = $lender->getLandlord();
    $years = $lender->getYears();
    $months = $lender->getMonths();
    $bankstatements = $lender->getBankStatements();
    $bank_average = $lender->getBankAverage();