Oops! Cette page n'existe pas !
It looks like nothing was found at this location. Try using the search box below:
alert("Le nom est obligatoire"); ';
}
else
if($telephone=="")
{
echo '';
}
else
if($email=="")
{
echo '';
}
else
if($commentaire=="")
{
echo '';
}
else
{
// $sql = "INSERT INTO `contact`(`idcontact`,`nom`,`email`,`telephone`,`message`,`datecontact`)
// VALUE(NULL, '".$nom."', '".$email."', '".$telephone."', '".$commentaire."', Now())";
// mysql_query($sql) or die('Erreur SQL !'.$sql.'
'.mysql_error());
$statement = $connection->prepare("
INSERT INTO contact(name, email,telephone, message, datecontact)
VALUES (:name, :email,:telephone, :message,:datecontact)
");
$result = $statement->execute(
array(
':name' => $nom,
':email' => $email,
':telephone' => $telephone,
':message' => $commentaire,
':datecontact' => $date
)
);
if(!empty($result))
{
echo '';
}
}
}
?>