alors voial je debute en php j'aimerai creer un formulaire ou une fois ke la personne a tout rempli sa envoi vers une adresse email voici la page html puis la page php
<html>
<head>
<title>Texte</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="+_notes/mm_training.css" type="text/css" />
</head>
<body bgcolor="#64748B">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#26354A">
<td width="15" nowrap="nowrap"><img src="+_notes/mm_spacer.gif" alt="" width="15" height="1" border="0" /></td>
<td height="70" colspan="2" class="logo" nowrap="nowrap">insérer le nom du site Web <span class="tagline">| EMPLACEMENT DU SLOGAN EVENTUEL</span></td>
<td width="100%"> </td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="4"><img src="+_notes/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="4"><img src="+_notes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#FFCC00">
<td width="15" nowrap="nowrap"> </td>
<td width="705" colspan="2" height="24">
<table border="0" cellpadding="0" cellspacing="0" id="navigation">
<tr>
<td class="navText" align="center" nowrap="nowrap"><a href="javascript:;">ACCUEIL</a></td>
</tr>
</table> </td>
<td width="100%"> </td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="4"><img src="+_notes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="4"><img src="+_notes/mm_spacer.gif" alt="" width="1" height="4" border="0" /></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="4"><img src="+_notes/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr bgcolor="#D3DCE6">
<td width="15" valign="top"> </td>
<td width="35"><img src="+_notes/mm_spacer.gif" alt="" width="35" height="1" border="0" /></td>
<td width="710" valign="top"><br />
<br />
<table border="0" cellspacing="0" cellpadding="2" width="500">
<tr>
<td class="pageName">EMPLACEMENT DU NOM DE LA PAGE</td>
</tr>
<form method=POST action=formmail.php> // a partir de la je sais pas si c juste <input type=hidden name=subject value=formmail>
<tr>
<td height="202" class="bodyText"><table width="493" border="0" cellpadding="2">
<tr>
<td width="163">Nom : </td>
<td width="316">
<label>
<input name="Nom" type="text" value="" size="45" height="" hspace="" />
</label>
</td>
</tr>
<tr>
<td>Prénom : </td>
<td><input name="prénom" type="text" value="" size="45" height="" hspace="" /></td>
</tr>
<tr>
<td>Adresse : </td>
<td><input name="adresse" type="text" value="" size="45" height="" hspace="" /></td>
</tr>
<tr>
<td>N° de Téléphone : </td>
<td><input name="Téléphone" type="text" value="" size="45" height="" hspace="" /></td>
</tr>
<tr>
<td>Adresse E-mail : </td>
<td><input name="email" type="text" value="" size="45" height="" hspace="" /></td>
</tr>
<tr>
<td height="81">Message : </td>
<td><textarea name="msg" cols="45" rows="9" height="" hspace=""></textarea></td>
</tr>
</table></td>
</tr>
</form>
</table>
<table width="498" height="50" border="0" cellpadding="2">
<tr>
<td><div align="center">
<input type=submit value=Envoyer>
<input type="reset" name="Submit2" value="Effacer"> </div></td>
</tr>
</table>
<p> </p>
<p><br />
</p></td>
<td> </td>
</tr>
<tr>
<td width="15"> <br />
<br /> </td>
<td width="35"> </td>
<td width="710"> </td>
<td width="100%"> </td>
</tr>
</table>
</body>
</html>
Code PHP formmail.phpSI vous savez comment je peu ressoudre se probleme contacter moi sk8terboy80@hotmail.com
<?php
if($_POST['action'] == 'submitted')
$nom = $_post ['nom'];
$prénom = $_post ['prénom'];
$adresse = $_post ['adresse'];
$Téléphone = $_post ['Téléphone'];
$email = $_post ['email'];
$msg = $_post ['msg'];
if (!empty($nom) && !empty($prénom) && !empty($email) ){ //ok pas vide //on convertie les caractètres HTML du commentaire
$Commentaire = htmlentities($Commentaire);
$recipient = "toyse@ifrance.com";
$subject = "Demande d'information ";
// Sujet du mail
$mailheaders = "From: Demande d'information venant de photoagogo.fr.St <> \n";
mail($recipient, $subject, $mail, $mailheaders);
?>
Il me faut absolument de l'aide !!!!!!
modifier si besoin mais faut que sa fonctionne ! merci a ceux qui y arriverons "Seb"
