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
| <?php
include ('includes/init.php');
include ('includes/head.php');
include ('includes/headercon.php');
$tz = $_POST["tz"];
$nom = $_POST["nom"];
$prenom = $_POST["prenom"];
$adresse = $_POST["adresse"];
$cp = $_POST["cp"];
$ville = $_POST["ville"];
$tel = $_POST["tel"];
$email = $_POST["mail"];
$sql = ('UPDATE inscription SET tz="'.$_POST['tz'].'",nom="'.$_POST['nom'].'", prenom="'.$_POST['prenom'].'", adresse="'.$_POST['adresse'].'", cp="'.$_POST['cp'].'", ville="'.$_POST['ville'].'", tel="'.$_POST['tel'].'",email="'.$_POST['mail'].'" WHERE nom="'.$_POST['nom'].'"' );
$requette= mysql_query($sql) or die (mysql_error());
if($requette)
{
?>
<center><?PHPecho ("L\'enrregistrement s\'est bien effectuee.");?></center>
<?PHP
//include('menu.php');
}
else
{
echo ("Un probleme est parvenu").mysql_error();
}
?> |
Partager