Envoie de formulaire. Besoin d'aide

Fermé
sakhavat Messages postés 47 Date d'inscription samedi 2 janvier 2010 Statut Membre Dernière intervention 17 avril 2012 - 20 déc. 2011 à 15:39
Bonjour,

Je suis débutant en php. J'ai un formulaire sur le site, mais problème c'est que je n'arrive pas le traiter.
Je sais qu'il existe mail (), mais dans mon cas je sais pas comment l'utiliser. Car je fais une vérification avant d'envoyer les informations.

Voici mon formulaire

<FORM onsubmit="return validation()" id="parents" name="parents" method="post" action="traitement.php">

<FIELDSET><LEGEND>
<H2 class="coordonnne">Vos coordonnées</H2></LEGEND><LABEL for=nom>


<H2 class=titre>Parents</H2></LABEL><BR>

<LABEL for="prenom">Prénom* </LABEL><BR>
<INPUT id="prenom" tabIndex=10 name="prenom_p"><BR>

<LABEL for="nom">Nom*</LABEL><BR>
<INPUT id="nom" tabIndex=20 name="nom_p"><BR>

<LABEL for="code_postale">Code postal/Ville*</LABEL><BR>
<INPUT id="code_postale" tabIndex=50 name="code_postale"><BR>

<LABEL for="portable">Téléphone portable* </LABEL><BR>
<INPUT id="portable" tabIndex=50 name="portable_p"><BR>

<LABEL for="adresse_p">Adresse*</LABEL><BR>
<TEXTAREA id="adresse_p" tabIndex=40 cols=20 name="adresse_p"></TEXTAREA><BR><BR>

<LABEL for="tel_fixe">Téléphone fixe </LABEL><BR>
<INPUT id="tel_fixe" tabIndex=50 name="tel_fixe"><BR>

<LABEL for="fax">Fax </LABEL><BR>
<INPUT id="fax" name="fax"><BR>

<LABEL for="email_p">Email</LABEL><BR>
<INPUT id="email_p" tabIndex=50 name="email_p"><BR><BR></FIELDSET>


et mon traitement.php

<H2>Vos coordonnées</H2></LEGEND><LABEL for=nom>
<H2 class="titre">Parents </H2></LABEL><BR>
<ul>
<li>Prénom :<b><?php echo $_POST['prenom_p']; ?> </b><BR></li>
<li>Nom de parent: <b><?php echo $_POST['nom_p']; ?> </b><BR></li>
<li>Code postale/ville: <b><?php echo $_POST['code_postale']; ?> </b><BR></li>
<li>Portable: <b><?php echo $_POST['portable_p']; ?> </b><BR></li>
<li>Adresse: <b><?php echo $_POST['adresse_p']; ?> </b><BR></li>
<li>Tél fixe: <b><?php echo $_POST['tel_fixe']; ?> </b><BR></li>
<li>Fax :<b><?php echo $_POST['fax']; ?> </b><BR></li>
<li>Email :<b><?php echo $_POST['email_p']; ?> </b><BR></li>

</ul>


Merci d'avance pour vos réponses !