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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
<b><i><span style="color:blue;font-size:14px;">Merci pour votre message, nous répondrons au plus vite à votre demande.</span></i></b><br />
<?php
print "Bonjour : ";
if (!isset($_POST['txt'])) {
$txt = $_POST['nom'];
if (preg_match('~[#[{<"/">}\];]~', $txt))
die ('<span style="color:red">Par mesure de sécurité,</span><br />
Ces carractères spéciaux ne sont pas autorisés [#[{<"">}\];]</i>: '.$ligne.'
<br />**.<br />RETOUR <a href="index.php">ICI</a>');
}
if (!isset($_POST['txt2'])) {
$txt2 = $_POST['em'];
if (preg_match('~[#[{<"/">}\];]~', $txt2))
die ('<span style="color:red">Par mesure de sécurité,</span><br />
Ces carractères spéciaux ne sont pas autorisés [#[{<"">}\];]</i>: '.$ligne.'
<br />**.</span><br />
Merci pour votre compréhension.<br />RETOUR <a href="index.php">ICI</a>');
}
if (!isset($_POST['txt3'])) {
$txt3 = $_POST['mess'];
if (preg_match('~[#[{<"/">}\];]~', $txt3))
die ('<span style="color:red">Par mesure de sécurité,</span><br />
Ces carractères spéciaux ne sont pas autorisés [#[{<"">}\];]</i>: '.$ligne.'
<br />**!.</span><br />
Merci pour votre compréhension.<br />RETOUR <a href="index.php">ICI</a>');
}
?>
<?php
$destinataire = "mon-adresse@e-mail.com";
$expediteur = $nom;
$reponse = $expediteur;
echo ($_POST['nom']);
$body =
'
Nom :
'.$nom.'
e-mail :
'.$em.'
Message :
'.$mess.'
<table> <tr><td style="border:solid 1px black;width:150px;text-align:left;">
<span style="color:red">//Voici le message envoyé, merci.//</span></td></tr></table>
<table>
<br />'.$D1.'
';
mail($destinataire,
"$prenom",
$body,
"From: $expediteur\r\nReply-To: $reponse");
?>
<br />---------------------------------<br />
<?php echo $body ?><br /><a href="http://www.MONSITE.fr/">Retour au site</a><br />
<br />
<span style="color:darkblue;font-size:10px;"><i>programmations@MOI.</i></span> |
Partager