Perte de formail

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : Perte de formail

Re: Perte de formail

par kimduc » 09 août 2010, 17:47

<?php
$Nom = $_POST["Nom"];
$Prenom = $_POST["Prenom"];
$Email = $_POST["Email"];
//Etc...

$Destinataire = "TON EMAIL";
$Sujet = "Nouvelle reservation client";
$Message = "Nom: $Nom <br>Prenom: $Prenom <br> Email: $Email<br> Etc...";
$From = $Email;
mail($Destinataire,$Sujet,$Message,$From);
echo " reservation envoyée";
?>
A toi de finir

Perte de formail

par fabfab74 » 09 août 2010, 10:12

Bonjour,

Suite a une récupération d'un site a modifier je n'ai pas pus recupérer le formail.php donc le formulaire étant en place etant néophite en php , je me permet de vous demander un peu d'aide !!!!!!


Voici le "code" du formulaire :

<tr>
<td height="390"><form action="http://www.******/formmail_orangerie.php" method="post" name="form1" target="_blank" id="form1" onsubmit="MM_validateForm('Nom','','R','Telephone','','RisNum','Email','','RisEmail','Arrivee','','R','Depart','','R');return document.MM_returnValue">
<table width="82%" border="0" align="center">
<input type="hidden" name="sujet" value="Demande de reservation depuis le site internet" />
<tr>
<td width="36%"><div align="right" class="Style28"><span class="ss">Nom * : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Nom" type="text" id="Nom" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Prénom : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Prenom" type="text" id="Prenom" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Adresse : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Adresse" type="text" id="Adresse" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Code postal et ville : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Ville" type="text" id="Ville" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Téléphone * : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Telephone" type="text" id="Telephone" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">E-mail * : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Email" type="text" id="Email" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Date d'arrivée prévue * : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Arrivee" type="text" id="Arrivee" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Date de départ prévue * : </span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<input name="Depart" type="text" id="Depart" size="40" />
</span></div></td>
</tr>
<tr>
<td><div align="right" class="Style28"><span class="ss">Commentaires :</span></div></td>
<td colspan="3"><div align="left">
<span class="ss">
<textarea name="Commentaires" cols="32" id="Commentaires"></textarea>
</span></div></td>
</tr>
<tr>
<td><span class="ss">* Saisie obligatoire </span></td>
<td width="17%"><div align="right">
<span class="ss">
<!-- Début appel javascript pour ouvrir le pop up au survol du bouton envoyer -->
<input name="Submit" type="submit" value="Envoyer" />
<!-- Fin appel javascript pour ouvrir le pop up au survol du bouton envoyer -->
</span></div></td>

Voila mais que faut t'il mettre dans le formail ????

D'avance merci pour votre aide