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
| <?php
// Script pour comparer la variable "$lien_php"
$lien_php = "http://monsite.free.fr/formulario_contacto.php";
$input_url_php=$_POST['input_url_php'];
if ($input_url_php == $lien_php){
print "secure_responsePHP=1"; }
else{ print "secure_responsePHP=2"; }
// Script pour envoyer des données par mail (en état de brouillon)
$nombreRemitente = $_POST['nombreUsuario'];
$mailRemitente = $_POST['mailUsuario'];
$mensajeRemitente = $_POST['msgUsuario'];
$gmailRemitente = $_POST['gmailUsuario'];
$clientRemitente = $_POST['clientUsuario'];
$nombreUsuaro = stripslashes($nombreRemitente);
$mailUsuario = stripslashes($mailRemitente);
$msgUsuario = stripslashes($mensajeRemitente);
$to = "$gmailRemitente";
$from = "$mailRemitente";
$subject = "Rapport de visite - $clientRemitente";
$message = <<<EOF
<html>
<body>
<b>RAPPORT VISITE</b> - $clientRemitente<br />
-----------------------------------------------------------------<br /><br />
<table border="1" width="200">
<td><b><u>CUISINE</u></b></td><tr />
<td>- Micro Onde:</td> <td>$nombreRemitente</td><tr />
<td>- Réfrigérateur:</td> <td>$mailRemitente</td><tr />
<td>- Gazinière:</td> <td>$mensajeRemitente</td><tr /><tr />
</table>
<b><u>CHAMBRE</u></b><br />
- Lit<br />
- Eclairage<br />
- Télévision<br /><br />
<b>FIN DU RAPPORT</b><br />
</body>
</html>
EOF;
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$to = "$to";
mail($to, $subject, $message, $headers);
exit();
?> |
Partager