Bon voila je suis tjs avec mon pb de formulaire form2mail... Voila g le code ci-dessous ils me retournent l'erreur suivante: Parse error: parse error in /home/srt/www/maespirit/devis.php on line 231
Voila le code:
<?
$nom=$_POST['nom'];
$prenom=$_POST['prenom'];
$societe=$_POST['societe'];
$adresse=$_POST['adresse'];
$code=$_POST['code'];
$ville=$_POST['ville'];
$pays=$_POST['pays'];
$telephone=$_POST['telephone'];
$mail=$_POST['mail'];
$MailTo = "spiritanghell@msn.com";
$MailSubject = "Devis MS-Partie 1";
$MailHeader = "From: $mail";
?>
<html>
<head>
<style TYPE="text/css">
<!--
INPUT {
font-size:8px;
font-family:Verdana;
}
-->
</style>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html/php; charset=windows-1252">
<title>Bienvenue sur MaeSpirit, équipe de conception de web site professionelle.</title>
<SCRIPT LANGUAGE="JavaScript">
if(document.images)
{
i402952 = new Image;
i402952 = "images/mn_acceuil_on.gif";
}
if(document.images)
{
i402953 = new Image;
i402953 = "images/mn_portfolio_on.gif";
}
if(document.images)
{
i402954 = new Image;
i402954 = "images/mn_offres_on.gif";
}
if(document.images)
{
i402955 = new Image;
i402955 = "images/mn_devis_on.gif";
}
if(document.images)
{
i402956 = new Image;
i402956 = "images/mn_contact_on.gif";
}
</SCRIPT>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
<td rowspan="2" width="320">
<img border="0" src="images/ban_gch.jpg" width="320" height="109"></td>
<td width="182" height="60">
<img border="0" src="images/ban_middle_ht.gif" width="182" height="60"></td>
<td rowspan="2" width="76" height="109">
<img border="0" src="images/ban_middle_drt.jpg" width="76" height="109"></td>
<td rowspan="2" background="images/ban_fd.gif" height="109"> </td>
<td rowspan="2" width="213" height="109">
<img border="0" src="images/ban_logo.jpg" width="213" height="109"></td>
</tr>
<tr>
<td width="182" height="49">
<img border="0" src="images/ban_middle_bs.jpg" width="182" height="49"></td>
</tr>
</table>
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table2">
<tr>
<td width="30" height="21" valign="top">
<img border="0" src="images/ban_gch_bs.gif" width="105" height="21"></td>
<td rowspan="2" height="23" align="center" valign="top">
<A HREF="index.htm" onMouseOver="i402952.src='images/mn_acceuil_on.gif'" onMouseOut="i402952.src='images/mn_acceuil_off.gif'">
<IMG SRC="images/mn_acceuil_off.gif" BORDER=0 NAME="i402952" ALT="Acceuil" HSPACE=0 VSPACE=0 width="100" height="23"></A>
<A HREF="portfolio.htm" onMouseOver="i402953.src='images/mn_portfolio_on.gif'" onMouseOut="i402953.src='images/mn_portfolio_off.gif'">
<IMG SRC="images/mn_portfolio_off.gif" BORDER=0 NAME="i402953" ALT="Notre Portfolio" HSPACE=0 VSPACE=0 width="100" height="23"></A>
<A HREF="offres.htm" onMouseOver="i402954.src='images/mn_offres_on.gif'" onMouseOut="i402954.src='images/mn_offres_off.gif'">
<IMG SRC="images/mn_offres_off.gif" BORDER=0 NAME="i402954" ALT="Nos offres" HSPACE=0 VSPACE=0 width="100" height="23"></A>
<A HREF="devis.htm" onMouseOver="i402955.src='images/mn_devis_on.gif'" onMouseOut="i402955.src='images/mn_devis_off.gif'">
<IMG SRC="images/mn_devis_off.gif" BORDER=0 NAME="i402955" ALT="Faire un devis" HSPACE=0 VSPACE=0 width="100" height="23"></A>
<A HREF="contact.htm" onMouseOver="i402956.src='images/mn_contact_on.gif'" onMouseOut="i402956.src='images/mn_contact_off.gif'">
<IMG SRC="images/mn_contact_off.gif" BORDER=0 NAME="i402956" ALT="Nous contactez" HSPACE=0 VSPACE=0 width="100" height="23"></A>
</td>
</tr>
<tr>
<td width="30" height="2">
</td>
</tr>
</table>
<table border="0" cellpadding="10" style="border-collapse: collapse" width="100%" id="table3" height="260">
<tr>
<td>
<p align="right" style="margin-top: 0; margin-bottom: -5px"><b>
<font face="Arial Black" color="#EFED21">Devis</font></b></p>
<table border="0" cellpadding="5" style="border-collapse: collapse" width="100%" id="table4" height="83%">
<tr>
<td style="border-top: 1px solid #EFED21; border-bottom: 1px solid #EFED21; ">
<b><font size="1" color="#627273" face="Times New Roman">»
</font></b><font face="Verdana" size="1" color="#627273"><b>
Section</b> </font><b><i>
<font face="Verdana" size="1" color="#9A000B">Devis</font></i></b><p><font face="Verdana" size="1" color="#627273">
Le prix d'un site internet dépend de sa taille, de sa complexité
(site plaquette, commerce électronique etc...) et de vos <br>
exigences en matière graphique et technique. </font></p>
<p><font face="Verdana" size="1" color="#627273"><br>
Exposez-nous en détails votre projet par le biais du formulaire
ci-après, afin d'obtenir rapidement une estimation.</font></p>
<?
if(!empty($nom) || !empty($prenom) || !empty($societe) || !empty($code) || !empty($adresse) || !empty($ville) || !empty($pays) || !empty($telephone) || !empty($mail))
{
if (empty($nom)){
$err_nom="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($prenom)){
$err_pren="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($societe)){
$err_societe="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($adresse)){
$err_adresse="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($code)){
$err_code="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($ville)){
$err_ville="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($pays)){
$err_pays="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($telephone)){
$err_tel="<font face=verdana size=2 color=red>*</font><br>";}
if (empty($mail)){
$err_mail="<font face=verdana size=2 color=red>*</font><br>";}
}
if(empty($nom) || empty($prenom) || empty($societe) || empty($code) || empty($adresse) || empty($ville) || empty($pays) || empty($telephone) || empty($mail))
{
echo '
<div align="center">
<table border="0" cellpadding="0" width="516" id="table6">
<tr>
<td align="right" bgcolor="#F9F9F9" colspan="2"><i>
<font face="Verdana" color="#CF7744">1ère étape :</font><b><font face="Verdana" color="#EB8D8F">
</font></b></i><font face="Verdana" color="#808080">
Vos informations personnels<img border="0" src="images/table_drt.gif" width="35" height="28"></font></td>
<td align="right"> </td>
</tr>
<tr>
<td align="right" bgcolor="#F3F4F5">
<small>
<font face="Verdana" size="1" color="#9A000B">Nom :
</font><font size="1" color="#9A000B">
<input type="text" name="nom" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$nom.'"></font></small>'.$err_nom.'</td>
<td bgcolor="#F3F4F5" align="right" colspan="2">
<font face="Verdana" size="1" color="#9A000B">
Adresse : </font>
<small>
<font size="1" color="#9A000B">
<input type="text" name="adresse" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$adresse.'"></font></small>'.$err_adresse.'</td>
</tr>
<tr>
<td align="right" bgcolor="#F3F4F5"><small>
<font face="Verdana" size="1" color="#9A000B">Prénom
: </font><font size="1" color="#9A000B">
<input type="text" name="prenom" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$prenom.'"></font></small>'.$err_pren.'</td>
<td width="46%" bgcolor="#F3F4F5" align="right" colspan="2">
<font face="Verdana" size="1" color="#9A000B">Code
postal :</font><small><font color="#9A000B" size="1">
<font size="1">
<input type="text" name="code" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$code.'"></font></font></small>'.$err_code.'</td>
</tr>
<tr>
<td width="277" align="right" bgcolor="#F3F4F5">
<font face="Verdana" size="1" color="#9A000B">
Société : </font><small>
<font size="1">
<input type="text" name="societe" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$societe.'"></font></small>'.$err_societe.'</td>
<td bgcolor="#F3F4F5" align="right" colspan="2">
<font face="Verdana" size="1" color="#9A000B">Ville
: </font>
<small>
<font size="1" color="#9A000B">
<input type="text" name="ville" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$ville.'"></font></small><font face="Verdana" size="1" color="#9A000B">
</font>'.$err_ville.'</td>
</tr>
<tr>
<td align="right" bgcolor="#F3F4F5">
<font face="Verdana" size="1" color="#9A000B">
Téléphone : </font><small>
<font size="1">
<input type="text" name="telephone" size="22" style="border:1px solid #808080; background-color:#FFFFFF"></font></small></td>
<td bgcolor="#F3F4F5" align="right" colspan="2">
<font face="Verdana" size="1" color="#9A000B">Pays :</font><small><font color="#9A000B" size="1">
<font size="1">
<input type="text" name="pays" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$telephone.'"></font></font></small><font face="Verdana" size="1" color="#9A000B">
</font>'.$err_tel.'</td>
</tr>
<tr>
<td align="right" bgcolor="#F3F4F5">
<font face="Verdana" size="1" color="#9A000B">E-mail
: </font><small>
<font size="1">
<input type="text" name="mail" size="22" style="border:1px solid #808080; background-color:#FFFFFF" value="'.$mail.'"></font></small>'.$err_mail.'</td>
<td colspan="2">
<p align="center"> </td>
</tr>
</table>';
}
else{
$MailBody = "Nom : $nom \nPrénom : $prenom\n Société : $societe\n Adresse : $adresse\n Code Postal : $code\n Ville : $ville\n Pays : $pays\n Numéro de téléphone : $telephone\n E-mail : $mail\n";
mail($MailTo, $MailSubject, $MailBody, $MailHeader);
echo("<p><font face=verdana size=2>Votre message a bien été envoyé.\n Vous allez être redirigé vers la partie 2 du devis.<META HTTP-EQUIV=Refresh CONTENT=\"3; URL=devis2.htm\"></font> ");
}
</div>
<p align="center">
<INPUT type="reset" value="Tout effacer" style="font-family: Verdana; font-size: 8pt; color: #800000; font-weight: bold; letter-spacing: 2; border: 1px solid #800000; background-color: #F3F4F5">
<INPUT type="submit" value="» 2ème étape" style="font-family: Verdana; font-size: 8pt; color: #800000; font-weight: bold; letter-spacing: 2; border: 1px solid #800000; background-color: #F3F4F5"></p>
<p> </td>
</tr>
</table>
</td>
<td width="139" valign="top" align="center">
<p style="margin-top: 0; margin-bottom: 0" align="left">
<b><font size="1" color="#627273" face="Times New Roman">»</font><font face="Verdana" size="1" color="#CF7744">1ère
étape</font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1">2ème
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1">3ème
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Verdana" size="1">Deuxième page :</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1" color="#9A000B">1ère
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<b><font size="1" color="#627273" face="Times New Roman">»</font><font face="Verdana" size="1" color="#CF7744">2ème
étape</font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1">3ème
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font face="Verdana" size="1">Troisième page :</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1" color="#9A000B">1ère
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="1" face="Times New Roman" color="#FFFFFF"><b>_</b></font><font face="Verdana" size="1" color="#9A000B">2ème
étape</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<b><font size="1" color="#627273" face="Times New Roman">»</font><font face="Verdana" size="1" color="#CF7744">3ème
étape</font></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p> </p>
<p align="left">
<img border="0" src="images/im_devis.jpg" width="120" height="151"></td>
</tr>
</table>
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" height="20" id="table5">
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
s'il vous plait indiquez moi l'erreur !!!!!!!!!!!!!!
merci d'avance, le mieux serait sur msn, ca serai plu pratique: spiritanghell@msn.com
Ciao all et merci davance