| [ Index ] |
PHP Cross Reference of IEUF |
[Summary view] [Print] [Text view]
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html> 4 <head> 5 <meta name="generator" content="HTML Tidy for Windows (vers 12 April 2005), see www.w3.org"> 6 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> 7 <title> 8 Ecrivez-nous 9 </title> 10 <link rel="stylesheet" href="ttes_pages.css" type="text/css"> 11 </head> 12 <?php 13 if (isset($_POST['mail'])) { 14 if (get_magic_quotes_gpc()) { 15 foreach ($_POST as $i=>$v) 16 $_POST[$i] = stripslashes($v); 17 } 18 19 $to=$_POST['mail']; 20 $nom=$_POST['nom']; 21 $tel=$_POST['telephone']; 22 $msg= "De la part de : $nom ($to) tel. $tel\n".$_POST['message']; 23 24 $headers = 'MIME-Version: 1.0' . "\n"; 25 $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\n"; 26 27 // En-têtes additionnels 28 $headers .= "From: $to" . "\n"; 29 //$headers .= 'Bcc: jm@chapellut.fr' . "\n"; 30 $ok= mail($to,"Message par site IEUF",$msg,$headers) ? "OK" : "Erreur"; 31 $ok= mail("iletait1fois@wanadoo.fr","Message par site IEUF",$msg,$headers) ? "OK" : "Erreur"; 32 echo ' 33 <script type="text/javascript"> 34 alert ("Votre message a bien été envoyé. \n Une copie vous est transmise"); 35 self.close(); 36 </script> 37 '; 38 echo $ok; 39 exit; 40 } 41 ?> 42 <body> 43 <h1 align="center"> 44 Ecrivez-nous 45 </h1> 46 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="contact" id="contact"> 47 <table align="center" border="1" cellpadding="2" cellspacing="2" width="80%"> 48 <tbody> 49 <tr> 50 <td align="right"> 51 Votre nom : 52 </td> 53 <td> 54 <input maxlength="30" size="30" name="nom"> 55 </td> 56 </tr> 57 <tr> 58 <td align="right"> 59 Votre adresse electronique : 60 </td> 61 <td> 62 <input maxlength="40" size="40" name="mail"> 63 </td> 64 </tr> 65 <tr> 66 <td align="right"> 67 Votre téléphone : 68 </td> 69 <td> 70 <input maxlength="30" size="30" name="telephone"> 71 </td> 72 </tr> 73 <tr> 74 <td align="right"> 75 Votre message :<br> 76 <i>(vous recevrez une copie de ce message sur votre adresse électonique)</i> 77 </td> 78 <td> 79 <textarea cols="40" rows="10" name="message"> 80 </textarea> 81 </td> 82 </tr> 83 </tbody> 84 </table><br> 85 <table border="0" cellpadding="2" cellspacing="2" width="100%"> 86 <tbody> 87 <tr> 88 <td align="right"> 89 <input name="envoyer" value="Envoyer" type="submit"> 90 </td> 91 <td align="right"> 92 <input name="abandonner" value="Abandonner" type="button" onclick="self.close();"> 93 </td> 94 </tr> 95 </tbody> 96 </table> 97 </form> 98 </body> 99 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Jan 31 19:59:00 2014 | Cross-referenced by PHPXref 0.7.1 |