if (isset($_GET['action']) AND $_GET['action']=="send")
{
$act=1;
$nom=strip_tags($_POST['nom']);
$prenom=strip_tags($_POST['prenom']);
$telephone=strip_tags($_POST['telephone']);
$email=strip_tags($_POST['email']);
$sujet=strip_tags($_POST['sujet']);
$message=strip_tags($_POST['message']);
/////////////////////////////////////////////
$subject = "Contact hotel-adef.com";
$content="Nom = $nom
Prenom = $prenom
Telephone = $telephone
Email = $email
Sujet = $sujet
Message = $message ";
$Txt = 0;
$to="contact@hotel-adef.com";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: contact@hotel-adef.com \r\n";
//mail($to,$Subject,$content,$headers);
mail($to, $subject, $content,$headers);
?>
Votre message a été reçu avec succès
!
}
?>
|