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
| <?php
$nom_radio = $_POST['nom_radio'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$fonction = $_POST['fonction'];
$categorie = $_POST['categorie'];
$adresse = $_POST['adresse'];
$codepostal = $_POST['codepostal'];
$ville = $_POST['ville'];
$pays = $_POST['pays'];
$email = $_POST['email'];
$code_licence = $_POST['code_licence'];
$code_crypte = $_POST['code_crypte'];
$quicontact = "radiowinners@gmail.com";
$headers ='From: "RadioWinners"<enregistrement@radiowinners.com>'."\n";
$headers .='Content-Type: text/html; charset="utf-8"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
$message ='<html><head>
</head><body>
<p>Bonjour,</p>
<p>Vous recevez cet email car une personne viens d\'enregistrer Radio Winners.</p>
<p><img src="http://www.radyonne.fr/images/mail/bas-sep.jpg" width="700" height="1"></p>
<p><strong>Nom de la radio : </strong>'.$nom_radio.'</p>
<p><strong>Nom : </strong>'.$nom.'</p>
<p><strong>Prénom : </strong>'.$prenom.'</p>
<p><strong>Fonction : </strong>'.$fonction.'</p>
<p><strong>Catégorie : </strong>'.$categorie.'</p>
<p><strong>Adresse : </strong>'.$adresse.'</p>
<p><strong>Code postal : </strong>'.$codepostal.'</p>
<p><strong>Ville : </strong>'.$ville.'</p>
<p><strong>Pays : </strong>'.$pays.'</p>
<p><strong>Email : </strong>'.$email.'</p>
<p> </p>
<p><strong>Code LICENCE : </strong>'.$code_licence.'</p>
<p><strong>Code CRYPTE : </strong>'.$code_crypte.'</p>
<p><img src="http://www.radyonne.fr/images/mail/bas-sep.jpg" width="700" height="1"></p>
<p> </p>
</body></html>';
mail(''.$quicontact.'', 'Enregistrement RADIO WINNERS', $message, $headers);
mysql_connect("gffgfgfg", "fgfgfg", "fgfgf");
mysql_select_db("fgfgfgf");
mysql_query("INSERT INTO radiowinners VALUES('', '" . $nom_radio . "', '" . $nom . "', '" . $prenom . "', '" . $fonction . "', '" . $categorie . "', '" . $adresse . "', '" . $codepostal . "', '" . $ville . "', '" . $pays . "', '" . $email . "', '" . $code_licence . "', '" . $code_crypte . "', '" . time() . "')");
?> |
Partager