Ca ne marche tjrs pas :
Code php :
<?php
$msg = "Pseudo:\t$Pseudo\n";
$msg .= "Rep 1 Vainqueur /5:\t$Vainqueur\n";
$msg .= "Rep 2 Ecart /3:\t$Ecart\n";
$msg .= "Rep 3 Equipe à la pause /2:\t$Pause\n";
$msg .= "Rep 4 Meilleur marqueur /1:\t$Marqueur\n";
$msg .= "E-Mail:\t$Email\n";
$msg .= "Message:\t$Commentaire\n\n";
$recipient = "webmaster@bcml.be";
$subject = "Prono BCML.BE";
$mailheaders = "From: Prono de $Pseudo <> \n";
$mailheaders .= "Reply-To: $Email\n\n";
if(isset($_POST['moncheck']){
$recipient = "$Email";
$subject = "Votre pronostique sur BCML.BE";
$mailheaders = "From: Webmaster BCML.BE <> \n";
$mailheaders .= "Reply-To: $Email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
}
echo "<HTML><HEAD>";
echo "<TITLE>Pronostique validé !</TITLE></HEAD><BODY background=basket15avril2_1024.jpg>";
echo "<H1 align=center><font size=6 face=arial><b>Merci $Pseudo,</b></font></font></H1>";
echo "<P align=center>";
echo "<font size=2 face=verdana><b>Votre pronostique a bien été validé.</b></font></font></P>";
echo "<P align=left>";
echo "<font color=blue size=2 face=verdana><b>Vous avez pronostiqué $Vainqueur vainqueur, avec un écart de $Ecart. $Pause mènera à la mi-temps et $Marqueur sera le meilleur marqueur, côté Libramontois.</b></font></font></P>";
echo "</BODY></HTML>";
?>
</body>
</html>
Code du formulaire :
<FORM method="POST" action="do_sendform22.php">
<b>
<font face="Verdana">
<input type="hidden" name="_id" value="463072">
</font>
</b>
</font>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="450" id="AutoNumber2" height="500" background="pronos.jpg" bordercolor="#C5C5C5">
<tr>
<td height="16" colspan="6" width="497">
<p align="center">
<img border="0" src="pronopseudo.jpg" width="57" height="14"></td>
</tr>
<tr>
<td height="22" colspan="6" width="497">
<p align="center"><font size="2" face="Verdana" COLOR="#C5C5C5"><u><b>
<input type="text" name="Pseudo" size="28" style="font-size: 10pt"></b></u></font></td>
</tr>
<tr>
<td height="18" colspan="6" width="497">
<p align="center">
<img border="0" src="pronoemail.jpg" width="46" height="15"></td>
</tr>
<tr>
<td height="22" colspan="6" width="497">
<p align="center"><font size="2" face="Verdana" color="#C5C5C5"><u><b>
<input type="text" name="Email" size="28" style="font-size: 10 pt"></b></u></font></td>
</tr>
<tr>
<td align="center" height="19" colspan="6" width="497">
<p align="right"><b><font size="2" face="Arial">
<img border="0" src="pronoequipe.jpg" align="left" width="215" height="16">(/5)</font></b></td>
</tr>
<tr>
<td align="center" height="22" width="183" colspan="2"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Vainqueur" value="Tintigny">Tintigny</font></b></td>
<td align="center" height="22" width="252" colspan="3"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Vainqueur" value="Libramont">Libramont</font></b></td>
</tr>
<tr>
<td align="center" height="18" colspan="6" width="497">
<p align="right">
<img border="0" src="pronoecart.jpg" align="left" width="229" height="15"><b><font size="2" face="Arial">(/3)</font></b></td>
</tr>
<tr>
<td align="center" height="22" width="75"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Ecart" value="-6">-6
pts</font></b></td>
<td align="center" height="22" width="108"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Ecart" value="6-10">entre
6 et 10</font></b></td>
<td align="center" height="22" width="129" colspan="2"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Ecart" value="11-15">entre
11 et 15</font></b></td>
<td align="center" height="22" width="123"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Ecart" value="16-25">entre
16 et 25</font></b></td>
<td align="center" height="22" width="57"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Ecart" value="+25">+25</font></b></td>
</tr>
<tr>
<td align="center" height="19" colspan="6" width="497">
<p align="right">
<img border="0" src="pronopauseequipe.jpg" align="left" width="206" height="16"><b><font size="2" face="Arial">(/2)</font></b></td>
</tr>
<tr>
<td align="center" height="22" width="183" colspan="2"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Pause" value="Tintigny">Tintigny</font></b></td>
<td align="center" height="22" width="252" colspan="3"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Pause" value="Libramont">Libramont</font></b></td>
<td align="center" height="22" width="62"><b>
<font face="Arial" style="font-size: 8pt"><input type="radio" name="Pause" value="Aucune équipe">Aucune</font></b></td>
</tr>
<tr>
<td align="center" height="15" colspan="6" width="497">
<p align="right">
<img border="0" src="pronobuteur.jpg" align="left" width="240" height="14"><b><font size="2" face="Arial">(/1)</font></b></td>
</tr>
<tr>
<td align="center" height="21" colspan="6" width="497">
<font size="2" face="Verdana" color="#C5C5C5"><u><b>
<input type="text" name="Marqueur" size="28" style="font-size: 10 pt"></b></u></font></td>
</tr>
<tr>
<td height="21" colspan="6" width="497">
<img border="0" src="pronoscom.jpg" align="left" width="135" height="14"></td>
</tr>
<tr>
<td height="21" colspan="6" width="497">
<p align="center">
<font size="2" face="Verdana" color="#C5C5C5"><u><b>
<input type="text" name="Commentaire" size="28" style="font-size: 10 pt"></b></u></font></td>
</tr>
<tr>
<td height="21" colspan="3" width="309">
<p align="center">
<font face="Arial" style="font-size: 8pt; font-weight: 700;" color="#4C0099">Je veux recevoir mon pronostique par email</font></td>
<td height="21" colspan="3" width="188">
<p align="left"><b>
<font face="Arial" style="font-size: 8pt">
<input type="checkbox" name="moncheck" value="1"></font></b></td>
</tr>
<tr>
<td height="21" colspan="6" width="497">
<p align="center"><input type="submit" value="Valider votre pronostic"></td>
</tr>
</table>
</center>
</div>
</form>
Message édité par oli1987 le 07-11-2005 à 21:12:19