Raga come mai nn mi funziona? Sotto il php cui si appoggia questa pagina http://www.qualitytravel.it/formail/preventivo.htm Chi mi scopre l'errore?
Questo il messaggio che compare
Parse error: syntax error, unexpected '=' in /formail/preventivo.php on line 28
<table width=985 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=400 valign=top bgcolor="#CCCCCC">[img]../gifs/qualitygrigio2.jpg[/img]</td>
<td width=220 align=right bgcolor="#CCCCCC"><font face="verdana, helvetica, sans serif" size="2" color="#660033">redazione@qualitytravel.it</font></td>
</tr>
</table>
</div>
</p> </div>
<p align="center"></p>
<?php
/*script per inviare mail tramite form ad un indirizzo predefinito
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*/
//in questa parte vengono stabiliti i valori delle variabili
$Name = $_POST['Name'];
$Telephone-Number = $_POST['Telephone-Number'];
$Email = $_POST['Email'];
$Organisation = $_POST['Organisation'];
$Organisation-Web-Address = $_POST['Organisation-Web-Address'];
$Number_of_delegates = $_POST['Number_of_delegates'];
$SetUp = $_POST['SetUp'];
$Catering = $_POST['Catering'];
$Meeting-Type = $_POST['Meeting-Type'];
$estBudget = $_POST['estBudget'];
$Day-of-Meeting = $_POST['Day-of-Meeting'];
$Total-Number-Of-Bedroom-Nights-Required = $_POST['Total-Number-Of-Bedroom-Nights-Required'];
$Room-Single= $_POST['Room-Single'];
$Room-Double = $_POST['Room-Double'];
$Suite = $_POST['Suite'];
$Send-Proposal = $_POST['Send-Proposal'];
$Call-To-Discuss-Options = $_POST['Call-To-Discuss-Options'];
$Additional-Requests = $_POST['Additional-Requests'];
//non dimenticate di modificare la mail del destinatario
$mail_destinatario = "redazione@qualitytravel.it";
//if ed elseif controllano che i campi vengano riempiti
//in caso contrario lanciano un messaggio di avvertimento
//i messaggi possono essere modificati a piacimento
if ($Name=="")
echo "Devi inserire il tuo nome.";
else ($Telephone-Number=="")
elseif (!ereg("^[a-z0-9][_\.a-z0-9-]+@([a-z0-9][0-9a-z-]+\.)+([a-z]{2,4})",$Email))
echo "Devi inserire un formato di e-mail valido per il mittente.";
else ($Organisation=="")
else ($Organisation-Web-Address=="")
else ($Number_of_delegates=="")
else ($SetUp=="")
else ($Catering=="")
else($Meeting-Type=="")
else($estBudget=="")
else ($Day-of-Meeting=="")
else ($Total-Number-Of-Bedroom-Nights-Required=="")
else ($Room-Single=="")
else($Room-Double=="")
else($Suite=="")
else ($Send-Proposal=="")
else ($Call-To-Discuss-Options=="")
else ($Additional-Requests=="")
else
if(mail($mail_destinatario, "Richiesta preventivo, mittente: $Name", "Inviata da: $Email" ."\r\n".stripslashes($messaggio)))
//modificate il messaggio a vostro piacere
echo "Richiesta inviata con successo";
//nel caso ci fossero problemi
else
echo "Si č verificato un errore durante l'invio.";
?>