l'errore persiste...mi dice
Parse error: syntax error, unexpected T_STRING in /membri/santadown/sendate.php on line 17
CODICE MESSO A POSTO:
Codice PHP:
<?php
$nome=$_POST['name'];
$cognome=$_POST['lname'];
$email=$_POST['email'];
$telefono=$_POST['tel'];
$motivo=$_POST['motivo'];
$messaggio=$_POST['mess'];
if($name!=null and $cognome!=null and $email!=null and $telefono!=null and $messaggio!=null){//se tutte le variabili sono state definite propongo il link
$to = "XXXXXXXX@gmail.com";
// IL SOGGETTO DELLA MAIL
$subject = "Modulo proveniente dal sito <a href=\"http://www.studio.it\" target=\"_blank\">[url]www.studio.it[/url]</a>";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = “Contenuto del modulo:\n\n”;
$body .= “Dati personali ;
nome: ” . trim(stripslashes($_POST["name"])) . “\n”;
$body .= “cognome: ” . trim(stripslashes($_POST["lname"])) . “\n”;
$body .= “email: ” . trim(stripslashes($_POST["email"])) . “\n”;
$body .= “telefono: ” . trim(stripslashes($_POST["tel"])) . “\n”;
$body .= “motivo: ” . trim(stripslashes($_POST["motivo"])) . “\n”;
$body .= “messaggio: ” . trim(stripslashes($_POST["mess"])) . “\n”;
if(@mail($to, $subject, $body)) { // SE L’INOLTRO E’ ANDATO A BUON FINE…
echo “La mail è stata inoltrata con successo!”;
} else {// ALTRIMENTI…
echo “Si sono verificati dei problemi nell’invio della mail.”;
}
}else{
echo “Invio dati fallito: prego riempire tutti i campi e riprocedere”;
}
?>