function Crear() { //require('/ModPdfAuditivo.php'); $tipoExamen = filter_input(INPUT_POST, 'tipoExamen'); if ($tipoExamen === "audiometria") { include_once '/ModPdfAuditivo.php'; $objMod = new ModPdfAuditivo(); $response = $objMod->Crear($tipoExamen); echo $response; } if ($tipoExamen === "oftalmologico") { include_once '/ModPdOftalmologico.php'; $objMod = new ModPdfAuditivo(); $response = $objMod->Crear($tipoExamen); echo $response; } if ($tipoExamen === "motriz") { include_once '/ModPdfMotriz.php'; $objMod = new ModPdfAuditivo(); $response = $objMod->Crear($tipoExamen); echo $response; } }