J'ai script récupérer pour l'insertion de commentaire, je cherche à faire que quand quelqu' un post un commentaire, je recois un email.
Le problème c'est que je sais pas trop comment faire....
Voici mon bout de code :
Code : Tout sélectionner
<form action="commentaire.<?php echo $php_extension; ?>" method="post" name="commentaire" onsubmit="return verif_form()">
<b><?php echo $str_nom; ?> :</b></td>
<td><input name="_recipients" type="hidden" value="mon email"><input type="text" name="auteur_form" value="<?php if ($cookie && $t_cookie[0] != '' && $action != 'ajouter') echo htmlspecialchars($t_cookie[0]); else echo htmlspecialchars($auteur_form); ?>" size=18 maxlength=14></td>
</tr>
<tr>
<td><?php echo $str_email; ?> :</td>
<td><input type="text" name="email_form" value="<?php if ($cookie && $t_cookie[1] != '' && $action != 'ajouter') echo $t_cookie[1]; else echo $email_form; ?>" size=18 maxlength=40></td>
</tr>
<tr>
<td colspan=2><b><?php echo $str_commentaire; ?> :</b><br><textarea name="texte_form" cols=29 rows=5></textarea></td>
</tr>
<tr>
<td align="center" colspan=2><input type="hidden" name="nom" value="<?php echo htmlspecialchars($nom); ?>"><input type="hidden" name="action" value="ajouter"><input type="submit" value="<?php echo $str_ajouter; ?>">
Merci pour votre aide