Formulaire mails vides
Publié : 11 mai 2009, 14:56
Bonjour,
Débutant, j'ai créé un formulaire de contact grâce au tuto http://info.sio2.be/NVU/4/2.php
Je reçois bien les messages dans ma boîte mail, mais ils sont vides.
J’ai parcouru tout le forum, sans avoir trouvé la solution.
Voici le code de mon formulaire html :
Voici le code php de ma page "envoi" :
Mon site est hébergé sur OVH (60gp)
Un grand merci pour votre aide.
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Débutant, j'ai créé un formulaire de contact grâce au tuto http://info.sio2.be/NVU/4/2.php
Je reçois bien les messages dans ma boîte mail, mais ils sont vides.
J’ai parcouru tout le forum, sans avoir trouvé la solution.
Voici le code de mon formulaire html :
Code : Tout sélectionner
<form method="post" action="envoi.php"
name="Devis"><span
style="font-weight: bold; font-family: Microsoft Sans Serif;"><span
style="color: rgb(97, 115, 101);"><big><br>
<span style="font-family: Arial;">Description
:</span></big></span><br>
<span style="font-style: italic;"></span><textarea
style="font-family: arial;" cols="60" rows="3"
name="descriptionprojet" wrap="normal">(budget acquis
ou compétition, support(s) envisagé(s)...)</textarea><br>
</span><br style="font-family: Microsoft Sans Serif;">
<span
style="font-weight: bold; font-family: Microsoft Sans Serif;"></span><big
style="color: rgb(97, 115, 101); font-family: Arial;"><span
style="font-weight: bold;">Délai
idéal :</span></big><br
style="font-family: Microsoft Sans Serif;">
<textarea style="font-family: arial;" wrap="normal"
cols="50" rows="2" name="delai">(planning,
dead line...)</textarea><br>
<br>
<big style="font-family: Arial;"><span
style="font-weight: bold; color: rgb(97, 115, 101);">Société
et ville :</span></big><br>
<textarea name="societeville" rows="1"
cols="40" wrap="normal"></textarea><br>
<br>
<big style="color: rgb(97, 115, 101); font-family: Arial;"><span
style="font-weight: bold;">Prénom et nom :</span></big><br>
<textarea name="prenomnom" rows="1" cols="40"
wrap="normal"></textarea><br>
<br>
<big style="color: rgb(97, 115, 101); font-family: Arial;"><span
style="font-weight: bold;">Email :</span></big><br>
<textarea wrap="normal" cols="40" rows="1"
name="email"></textarea><br>
<br>
<big style="color: rgb(97, 115, 101); font-family: Arial;"><span
style="font-weight: bold;">Tél. :</span></big><br>
<textarea wrap="normal" cols="30" rows="1"
name="telephone"></textarea><br>
<div style="text-align: right;">
<div style="text-align: right;"><button
value="OK" name="envoyer">envoyer</button></div>
Code : Tout sélectionner
$message = $dp. "\n";
$message .= $de. "\n";
$message .= $sv. "\n";
$message .= $pn. "\n";
$message .= $em. "\n";
$message .= $te. "\n";
$dp = htmlentities($_POST['descriptionprojet']);
$de = htmlentities($_POST['delai']);
$sv = htmlentities($_POST['societeville']);
$pn = htmlentities($_POST['prenomnom']);
$em = htmlentities($_POST['email']);
$te = htmlentities($_POST['telephone']);
mail ("mail@monfai.com", "Devis", $message, "From: $pn");
echo "Un grand merci ! Votre demande a bien été envoyée, soyez sûr que nous la traiterons dans les meilleurs délais. <br />";
Un grand merci pour votre aide.
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)