From 1a137fdc6d850f281ff344734c35787c2022d8e9 Mon Sep 17 00:00:00 2001 From: Gaetan Carabetta Date: Fri, 21 Jun 2019 18:52:42 +0200 Subject: [PATCH] update adresse name --- application/addClient.php | 6 +++--- application/formulaireClient.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/addClient.php b/application/addClient.php index f3e162b..55c66ea 100644 --- a/application/addClient.php +++ b/application/addClient.php @@ -12,7 +12,7 @@ $nom = $_POST['nom']; $prenom = $_POST['prenom']; $ddn = $_POST['ddn']; - $add = $_POST['add']; + $adress = $_POST['adresse']; $ntel = $_POST['ntel']; try @@ -29,12 +29,12 @@ { if ($ddn != "") { - if ($add != "") + if ($adress != "") { if ($ntel != "") { - $vSql ="INSERT INTO Client (nom,prenom,ddn,adresse,numero) VALUES ( '$nom','$prenom','$ddn','$add','$ntel');"; + $vSql ="INSERT INTO Client (nom,prenom,ddn,adresse,numero) VALUES ( '$nom','$prenom','$ddn','$adress','$ntel');"; try { $vSt = $vConn->prepare($vSql); diff --git a/application/formulaireClient.php b/application/formulaireClient.php index c4e815a..fc3c973 100644 --- a/application/formulaireClient.php +++ b/application/formulaireClient.php @@ -11,7 +11,7 @@

Nom:

Prenom :

Date de Naissance :

-

Adresse :

+

Adresse :

Numero de Telephone :

-- 2.22.0