function Guardar() { $cronograma = new CronogramaPagos(); if (isset($_POST['pagos_registro']) && $_POST['pagos_registro'] != "") { $pais = $_POST['pagos_pais']; $dia = $_POST['pagos_dia']; $registro = $_POST['pagos_registro']; //$estatus = $_POST['registro_estatus_val']; $cronograma->Nuevo_Cronograma($dia, $registro, $pais); header("Location: index.php?oksave"); } else { header("Location: index.php?error"); } }