La parte incriminata è questa:
Codice PHP:
if ($_POST['indirizzo']=="memorizzato") {
$query="SELECT * FROM utenti WHERE id=$idutente";
$resultutente=mysql_query($query,$db);
$rowutente=mysql_fetch_array($resultutente);
$address="Inviare a: \n".$rowutente[1]."".$rowutente[2]."n"."Indirizzo:".$rowutente[3].",".$rowutente[4].",".$rowutente[5].",".$rowutente[6].",".$rowutente[7]."\n".$rowutente[8]." ".$rowutente[9]." ".$rowutente[10];
$testo=$testo.$address;
} else {
$address="\n Indirizzo di destinazione: ".$_POST['alternativo'];
$testo=$testo.$address;
}
Se si verifica la prima condizione tutto bene, altrimenti restituisce questo errore.
Ho provato anche con dei die a stampare il testo finale della mail, ho provato a lasciare vuoto l'else, ma non ho trovato niente che a mio parere potesse causare un errore.