From 86b01f26ccfd4e580f8c9014408c46edbc00d9ff Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Mon, 5 Jan 2026 12:49:33 +0000 Subject: [PATCH] a --- Controleur/ControleurRechercherassure.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);