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 if ($_POST['message'] == "") { ?>
<form id="envoiemail" name="envoiemail" method="post" action="">
<p>
<span class="Style7">Référence* :</span>
<select name="modele" size="1" id="modele">
<option>Modèle</option>
<option value="Abyss">Abyss</option>
<option value="Stratego">Stratego</option>
</select>
<input name="num1" type="text" id="num1" size="2" maxlength="1" />
<input name="num2" type="text" id="num2" size="2" maxlength="1" />
<input name="num3" type="text" id="num3" size="2" maxlength="1" />
<input name="num4" type="text" id="num4" size="2" maxlength="1" />
<span class="Style5">/</span>
<input name="num5" type="text" id="num5" size="2" maxlength="1" />
<span class="Style5">N
</span>
<input name="num6" type="text" id="num6" size="2" maxlength="1" />
<br />
<p>
<span class="Style7">Nom * :</span>
<input name="nom" type="text" id="nom" maxlength="50" />
</p>
<p>
<span class="Style7">Pays : </span>
<input name="pays" type="text" id="pays" maxlength="50" />
</p>
<p>
<span class="Style7">E-mail*:</span>
<input name="mail" type="text" id="mail" maxlength="50" />
</p>
<p>
<input name="Submit" type="submit" onclick="MM_validateForm('num1','','RisNum','num2','','RisNum','num3','','RisNum','num4','','RisNum','num5','','RisNum','num6','','RisNum','nom','','R','mail','','RisEmail');return document.MM_returnValue" value="Envoyer" />
</p>
<p> *Champs obligatoires</p>
</form>
<?php } else {
mail("mon@mail.com", $_POST['nom'], $_POST['mail'],"From: ".$_POST['modele']."<".$_POST['mail'].">");
?>
<p>Nous vous remercions pour votre inscription et vous souhaitons d'agréable moment avec votre montre</p>
<?php } ?> |
Partager