12-08-2008, 01:35 PM
Voilà (qq adresses mails sont cachées ici) :
Code PHP :
<?php
$message2 = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr' ><head><title>EBASKET inscription</title><link href='http://www.ebasket.fr/styles/defaut.css' type='text/css' rel='stylesheet' /><meta name='Description' content='EBASKET, un jeu de gestion d\'équipe sur le basket' /><meta name='Author' content='Frédéric COULAUD' /><meta name='Identifier-URL' content='http://www.ebasket.fr' /><meta http-equiv='content-Type' content='text/html; charset=iso-8859-1' /></head><body><div><div class='centr2'><img src='http://www.ebasket.fr/images/ebasket.gif' alt='Bannière%20Ebasket' /></div>" ;
$message2 .= "<h2>Bulletin d'inscription de ".$_POST['pseudo']." </h2><form method='post' action='http://www.ebasket.fr/index.php?page2=validinscrit2&numsaison=".$_SESSION['num_s']."'>" ;
$message2 .= "Nom : <input type='text' name='nom' size='30' value='".$_POST['nom']."' maxlength='30' /><br />" ;
$message2 .= "Prénom : <input type='text' name='prenom' size='30' value='".$_POST['prenom']."' maxlength='30' /><br />" ;
$message2 .= "Pseudo : <input type='text' name='pseudo' size='8' value='".$_POST['pseudo']."' maxlength='8' /><br />" ;
$message2 .= "Mot de passe : <input type='password' name='password' size='8' value='".$_POST['password']."' maxlength='8' /><br />" ;
$message2 .= "Equipe : <input type='text' name='equipe' size='30' value='".$_POST['equipe']."' maxlength='30' /><br />" ;
$message2 .= "Pays : <input type='text' name='pays' size='30' value='".$_POST['pays']."' maxlength='30' /><br />" ;
$message2 .= "Etat de la salle : <input type='text' name='etat' size='10' value='".$_POST['etat']."' maxlength='10' /><br />" ;
$message2 .= "E-mail : <input type='text' name='mail' size='50' value='".$_POST['mail']."' maxlength='50' /><br />" ;
$message2 ."Motivation : <textarea name='motiv' rows='5' cols='50'>".$_POST['motiv']."</textarea><br />" ;
$message2 .= "IP : <input type='text' name='ip' size='50' value='".getenv("REMOTE_ADDR")."' maxlength='50' /><br />" ;
$message2 .= "<div class='centr2'><input class='bouton' type='submit' value='Enregistrer' name='enregistrer' /></form></div></body></html>" ;
$entete2 = "From: xxxx\n" ;
$entete2 .= "Reply-to: xxxx" ;
if (substr(mysqli_get_host_info($db),0,9)<>'localhost') EnvoieMail_Html('xxxx' , '[Ebasket] Inscription de '.$_POST['pseudo'], $message2, 'xxxx, xxxx' , 'xxxx, xxxx', $entete2) ;