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 41 42
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
<body>
<?php
$nom=$_POST["nom"];
$nom_enfant1_1=$_POST["nom_enfant1_1"];
$date_naissance1_1=$_POST["date_naissance1_1"];
$heure_garde11=$_POST["heure_garde11"];
$texte="<b>Nom et prénom:</b> $nom \n";
$texte.="Nombre d'enfants : $unenfant $deuxenfant $troisenfant <br /> \n";
$texte.="1er Enfant : Nom : $nom_enfant1_1 / Date :$date_naissance1_1 / Nb. Heures : $heure_garde1_1 \n";
//Fonctions envois du mail
$headers ='From: "Formulaire"<webmaster@abc.com>'."\n";
$headers .='Reply-To: webmaster@abc.com'."\n";
$headers .='Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
if(mail("webmaster@abc.com","Formulaire rempli sur le site abc.com",$texte, $headers)){
?>
<script language="javascript">
document.location.href="http://www.abc.com/formulaires/form_sent.php";
</script>
<?
}
?>
</body>
</html> |
Partager