<?php
if(!$_POST){
?>
<p><font style="color: #FF9900" size="+1"><b>Contact</b></font><br>
<br>
<form name="form1" method="post" action="">
<table class="goetic" width="500" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="17%" height="30"><strong><em>Pseudo</em></strong></td>
<td width="83%" height="30"><input name="pseudo" type="text" id="pseudo"></td>
</tr>
<tr>
<td height="30"><strong><em>Email</em></strong></td>
<td height="30"><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td height="30"><strong><em>Site web</em></strong></td>
<td height="30"><input name="web" type="text" id="web"></td>
</tr>
<tr>
<td height="30"><strong><em>Texte</em></strong></td>
<td height="30"><textarea name="texte" cols="50" rows="6" id="texte"></textarea></td>
</tr>
<tr>
<td height="30"> </td>
<td height="30" valign="bottom"><input type="submit" name="Submit" value="Envoyer"></td>
</tr>
</table>
</form>
<?php
}else{
$destinataire = "toi@tondomaine.com";
$sujet="Ici, tu met le sujet du mail";
if($_POST[email]!="" AND $_POST[pseudo]!="" AND $_POST[texte]!=""){
$email=$_POST[email];
$texte=$_POST[texte];
$pseudo=$_POST[pseudo];
if($_POST[web]!=""){ $web=$_POST[web]; }
mail($destinataire,$sujet,"$pseudo\n$email\n$web\n\n$texte");
echo '<center><br/>';
echo 'Votre demande a bien été enregistrée.<br/><br/>
Merci.</center>';
}else{
echo '<br/><br/>Vous n\'avez pas rempli tous les champs du formulaire.
<a href="javascript:history.back(-1)">Retour</a>';
}
}
?> 
<strong>son vouer a disparètre !

echo '<br/><br/>Vous n'avez pas rempli tous les champs du formulaire.
<a href="javascript:history.back(-1)">Retour</a>'
Nous - Plan du site - Informations légale - Contact - © Graphiks.net