formulaire de contact
Posté : 07 mai 2025, 16:23
Bonjour je vous remercie de bien vouloir m aide j ai un souci avec mon code pour un formulaire de contact je ne recois pas mes mails voulez vous bien m aide merci mille fois
code php
code php
<?php
$TO = "MAIL";
$TO = "NOM";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
Header("Location: SITE/confirmation/");
?>
Code Htlm <form name="formulaire" id="formulaire" action="contacter.php" method="post">
<input type="hidden" name="valid" id="valid">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Civilité</font></strong></td>
<td><input type="radio" name="civilite" onclick="set_structure()"><label for="civilite"><strong><font face="arial" size="2" color="#000000">Mlle</font></strong></label>
<input type="radio" name="civilite" onclick="set_structure()"><label for="civilite"><strong><font face="arial" size="2" color="#000000">Mme</font></strong></label>
<input type="radio" name="civilite" onclick="set_structure()"><label for="civilite"><strong><font face="arial" size="2" color="#000000">M.</font></strong></label></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Votre Nom <font color="#ff0000">*</font></font></strong></td>
<td><input type="text" name=requirednomClient size="30" maxlength="100"/></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Votre Tel <font color="#ff0000">*</font></font></strong></td>
<td><input type="text" name=requiredTel size="30" maxlength="100"/></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Code Postal</font></strong></td>
<td><input type="text" name="CodePostal" size="30" maxlength="100"/></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Ville</font></strong></td>
<td><input type="text" name="Ville" size="30" maxlength="100"/></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Adresse</font></strong></td>
<td><input type="text" name="Adresse" size="30" maxlength="100"/></td>
</tr>
<tr>
<td><strong><font face="arial" size="2" color="#000000">Commentaire</font></strong></td>
<td><textarea cols="30" rows="4" name="Commentaire"></textarea></td>
</tr>
<tr>
<td><input hspace="50" type="submit" value="Envoyer" /></td>
<td><input hspace="50" type="reset" value="Annuler" /></td>
</tr>
</tbody></table>
</form>
Merci mille fois