Salve a tutti, da qualche giorno ho un problema e non riesco proprio a venirne a capo.
In un sito ho un semplicissimo form di contatto formato da una pagina HTML che raccoglie i dati da form e quindi li trasmette ad una pagina PHP. Di seguito riporto i codici di entrambe le pagine:
PAGINA "CONTACT.HTML"
Codice PHP:
<form method="post" action="send.php">
<table class="s0">
<tr>
<td>Nome</td><td><input name="name" type="text" size="30" maxlength="40"/></td>
</tr>
<tr>
<td>Email</td><td><input name="email" type="text" size="30" maxlength="40"/></td>
</tr>
<tr>
<td>Messaggio</td><td><textarea name="msg" cols="50" rows="6"></textarea></td>
</tr>
</table>
<input type="reset" value="Cancella"/><input type="submit" value="Invia"/>
</form>
PAGINA "SEND.PHP"
Codice PHP:
$receiverMail = "mia@email.com"
$name = ltrim(rtrim(strip_tags(stripslashes($_POST['name']))));
$email = ltrim(rtrim(strip_tags(stripslashes($_POST['email']))));
$subject = "OGGETTO";
$msg = ltrim(rtrim(strip_tags($_POST['msg'])));
$ip = getenv("REMOTE_ADDR");
$msgformat = "From: $name ($ip)\nEmail: $email\n\n$msg";
L'errore restituito è
Parse error: syntax error, unexpected T_VARIABLE in /mounted-storage/home83b/sub007/sc43171-NMVQ/motoexplora.it/form/send.php on line 3
Premetto che fino a qualche giorno fa il tutto funzionava perfettamente, e inoltre lo stesso codice preciso identico funziona alla perfezione su di un altro sito.