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
|
<HTML>
<head>
<meta charset="UTF-8" />
<title>Enregistrement</title>
<head>
<BODY>
<?php
include("connexion.php")
?>
<?php
// Récupération des champs
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$tel = $_POST["tel"];
$fax = $_POST["fax"];
mysql_query("INSERT INTO t_client (id, nom, prenom, tel, fax) VALUES ('', '$nom', '$prenom', '$tel', '$fax') ");
mysql_close();
?>
<?php
// Affichage d'un message de réussite
echo "Le client $nom et $prenom vient d'être enregistré avec succès !";
?>
</BODY>
</HTML> |
Partager