1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <FORM method=post>
Nom :<INPUT name=nom><BR>
Email :<INPUT name=email><BR><BR>
<INPUT type=submit value=Envoyer> <INPUT type=reset value=Annuler> </FORM>
<?php
if(isset($_POST) && isset($_POST['nom']) && isset($_POST['email'])){
extract($_POST);
if (!empty($nom) && !empty($email)){
$destinataire="didyasaythat@hotmail.com";
$sujet="inscription";
$msg="un nouveau membre est inscrit \n
Nom : $nom \n
Email : $email";
$entete="From:$nom";
mail($destinataire,$sujet,$msg,$entete);
print "Votre inscription est prise en compte.";
}
else{
print "Vous n'avez pas rempli tous les champs.";
}
}
?> |
Partager