1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<?php
$Nom = $_POST['Nom'];
$Prenom =$_POST['Prenom];
$Date_de_naissance = $_POST['Date_de_naissance'];
$Adresse =$_POST['Adresse'];
$Ville = $_POST['Ville'];
$Cp= $_POST['Cp'];
$Pays = $_POST['Pays'];
$Civil = $_POST['Civil'];
$Email = $_POST['Email'];
if (isset($nom) && $nom!="") {
$connect= mysql_connect('localhost','client','31p71h49');
mysql_select_db("phplogin");
mysql_query("INSERT INTO (Nom, Prenom,Date_de_naissance,Adresse,Ville,Cp,Pays,Civil,Email phplogin VALUES('', '$nom', '$prenom','$date_de_naissance','$adresse','$ville','$cp','$pays','$civil','$email')");
?>
<form method="POST" action="nouveauxclient.php">
<p>Nom</p>
<input type="text" name="Nom"/>
<p>Prénom</p>
<input type="text" name="Prénom"/>
<p>Date de naissance</p>
<input type="text" name="Date_de_naissance"/>
<p>Adresse</p>
<input type="text" name="Adresse"/>
<p>Ville</p>
<input type="text" name="Ville"/>
<p>Code Postal</p>
<input type="text" name="Cp"/>
<p>Pays</p>
<input type="text" name="Pays"/>
<p>Civil</p>
<input type="text" name="Civil"/>
<p>Email</p>
<input type="text" name="Email"/><br/><br>
<input type="submit" name="Validez" value="Valider"/>
</form> |
Partager