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 43 44
| <?php
{
// CREATION DU MAIL
$subject = "Commande sur www.xxx.be";
$TO = "commande@xxx.be,aa@xxx.be,bb@xxx.be";
//$h = "From:" . $TO ;
$h = "From: \"Commande du site\"<commande@xxx.be>";
//$h = "From: \"WeaponsB\"<xxx@mail.fr>";
$message = "";
while (list($key, $val) = each($_POST)) {
if(empty($val)) {
} else{
$message .= "$key : $val\n";
}
}
mail($TO, $subject, $message, $h);
}
?>
<meta http-equiv="refresh" content="1;url=http://www.xxx.be/commande/merci.php"/>
<style type="text/css">
<!--
body {
background-color: #5e2b08;
}
-->
</style> |
Partager