Bonjour à tous,

je suis un peu novice dans le php, mais j'ai beaucoup cherché sur le net des solutions mais rien!

J'ai conçu mon script pour recevoir les données d'un formulaire en Html, qui marche à merveille!

Le problème je voudrai pouvoir renvoyer ces données vers mon email mais je ne trouve pas la solution...

Je ne sais pas ou les mettre, ni comment et quelles formules utilisées pour faire le retour vers mon email.

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Votrecommande</title>
</head>
<body bgcolor="#AFEEEE" align="center" valign="middle">
<p> Si vos informations et votre commande ne sont pas correctes, veuillez cliquez sur le lien retour.<br/>Si vos informations et que votre commande sont correctes cliquez sur OK.<br/>
<table width="90%" height="350" align="center" valign="middle" border="1">	
<tr>
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Nom est:<br/><?php $NOM = htmlentities($_POST['NOM']); echo"$NOM"?></th>
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Prénom est:<br/><?php $PRENOM = htmlentities($_POST['PRENOM']); echo"$PRENOM"?></th>
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Téléphone est:<br/><?php $TELEPHONE = htmlentities($_POST['TELEPHONE']); echo"$TELEPHONE"?></th>
	</tr>
<tr>	
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Adresse est:<br/><?php $ADRESSE = htmlentities($_POST['ADRESSE']); echo"$ADRESSE"?></th>
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Ville est:<br/><?php $VILLE = htmlentities($_POST['VILLE']); echo" $VILLE"?></th>
	<th width="30%" height="20" align="center" valign="middle" bordercolor="#0066FF" bgcolor="#CC99FF" scope="col">Votre Adresse Email est:<br/><?php $EMAIL = htmlentities($_POST['EMAIL']); echo"$EMAIL"?></th>
	</tr>
	<th height="150%" bgcolor="FFFFFF" colspan="3" valign="top" scope="row"><br/>Votre Commande :<br/><br/><br/><?php $VOTRETEXT = nl2br(htmlentities($_POST['VOTRETEXT'])); echo"$VOTRETEXT"?></th>
<tr align="center" valign="middle">
    <th height="26" bgcolor="#CC99FF" ><a href="javascript:history.back()">Retour</a></th>
    <th height="26" bordercolor="#000000"></th>
    <th height="26" bgcolor="#CC99FF" ><input type="submit" name="tout" value="OK"/></th></table>
<p> Vous allez recevoir un mail de confirmation de votre commande et une réponse dans les plus brefs délais.
</body>
</html>

Merci pour votre future aide!

(Et éventuellement si il y a une astuce pour que les données s'affichent en couleur bleu?)