Commit 1a137fdc authored by Gaetan Carabetta's avatar Gaetan Carabetta

update adresse name

parent 53aa5b55
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
$nom = $_POST['nom']; $nom = $_POST['nom'];
$prenom = $_POST['prenom']; $prenom = $_POST['prenom'];
$ddn = $_POST['ddn']; $ddn = $_POST['ddn'];
$add = $_POST['add']; $adress = $_POST['adresse'];
$ntel = $_POST['ntel']; $ntel = $_POST['ntel'];
try try
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
{ {
if ($ddn != "") if ($ddn != "")
{ {
if ($add != "") if ($adress != "")
{ {
if ($ntel != "") 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 try
{ {
$vSt = $vConn->prepare($vSql); $vSt = $vConn->prepare($vSql);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<P> Nom: <input type="text" name="nom"> <BR> </P> <P> Nom: <input type="text" name="nom"> <BR> </P>
<P> Prenom : <input type="text" name="prenom"> <BR> </P> <P> Prenom : <input type="text" name="prenom"> <BR> </P>
<P> Date de Naissance : <input type="date" name="ddn"> <BR> </P> <P> Date de Naissance : <input type="date" name="ddn"> <BR> </P>
<P> Adresse : <input type="text" name="add"> <BR> </P> <P> Adresse : <input type="text" name="adresse"> <BR> </P>
<P> Numero de Telephone : <input type="number" name="ntel"> <BR> </P> <P> Numero de Telephone : <input type="number" name="ntel"> <BR> </P>
<button name = "add" value = "add" type = "submit"> Add </button> <button name = "add" value = "add" type = "submit"> Add </button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment