diff --git a/Controleur/ControleurRechercherassure.php b/Controleur/ControleurRechercherassure.php index 25d0fa0..42299ed 100644 --- a/Controleur/ControleurRechercherassure.php +++ b/Controleur/ControleurRechercherassure.php @@ -29,6 +29,13 @@ class ControleurRechercherassure extends Controleur { $derniernumerobeneficiaires = '0'; if(!empty($_POST)) { + $numeroBeneficiaire=trim($_POST['numeroBeneficiaire']); + $numeroAdherent=trim($_POST['numeroAdherent']); + $nomBeneficiaire=trim($_POST['nomBeneficiaire']); + $prenomsBeneficiaire=trim($_POST['prenomsBeneficiaire']); + $telephonePortable=trim($_POST['telephonePortable']); + $email=trim($_POST['email']); + var_dump( array( "cas" => "Dans POST", @@ -41,14 +48,7 @@ class ControleurRechercherassure extends Controleur { ) ); exit(); - - $numeroBeneficiaire=trim($_POST['numeroBeneficiaire']); - $numeroAdherent=trim($_POST['numeroAdherent']); - $nomBeneficiaire=trim($_POST['nomBeneficiaire']); - $prenomsBeneficiaire=trim($_POST['prenomsBeneficiaire']); - $telephonePortable=trim($_POST['telephonePortable']); - $email=trim($_POST['email']); - + if($numeroBeneficiaire != '') { $beneficiaires = $this->beneficiaire->getBeneficiaire($numeroBeneficiaire);