Non capisco il perchè succede ciò.
Mi spiego:
quando da questo link:
http://www.libriantichicavallero.com/
mi ordinano un libro, se nel campo "Email o Telefono" scrivono l'indirizzo Email va tutto bene nel senso che io ricevo una Email correttamente, mentre se nel campo "Email o Telefono" scrivono un numero di telefono nel ricevere la Email non riesco a leggere il Mittente bensì leggo il "numero di telefono@cube.m7server.net"
Sapete spiegarmi il perchè ?
Questo è lo script del file "invia.php":
<?
require ("config.posta.php");
######## POTETE INSERIRE IL CODICE HTML PER PERSONALIZZARE LA PAGINA #####
?>
<html>
<head>
<title>Grazie</title>
<SCRIPT language="JavaScript">
<!--
if(document.layers){
document.write("<link rel='stylesheet' href='stileNN.css' type='text/css'>");
}
if(document.all){
document.write("<link rel='stylesheet' href='stile.css' type='text/css'>");
}
if(document.getElementById){
document.write("<link rel='stylesheet' href='stile.css' type='text/css'>");
}
//-->
</SCRIPT>
</head>
<body topmargin="50" margineight="50">
<table width="400" align="center">
<tr>
<td>
<?
if ($primo == "")
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>Attenzione! Non ha compilato il campo</cite> <font color=\"red\">$campo1</font></div></td>
</tr></table>" ;
}
elseif ($terzo == "")
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>Attenzione! Non ha compilato il campo</cite> <font color=\"red\">$campo3</font></div></td>
</tr></table>" ;
}
elseif ($quarto == "")
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>Attenzione! Non ha compilato il campo</cite> <font color=\"red\">$campo4</font></div></td>
</tr></table>" ;
}
elseif ($quinto == "")
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>Attenzione! Non ha compilato il campo</cite> <font color=\"red\">$campo5</font></div></td>
</tr></table>" ;
}
elseif ($secondo == "")
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>Attenzione! Non ha compilato il campo</cite> <font color=\"red\">$campo2</font></div></td>
</tr></table>" ;
}
else
{
echo "<table cellspacing=\"2\" cellpadding=\"2\" width=\"98%\" align=\"center\" class=\"tabella\">
<tr>
<td><div align=\"center\"><cite>$messaggio_inviato</cite></div></td>
</tr></table>";
mail("$tua_email","Modulo Contatti",
"Inviato da: $primo
il $data alle ore $ora
__________________________________________________ __________
$campo1 : $primo
$campo2 : $secondo
$campo3 $terzo
$campo4 $quarto
$campo5 $quinto
$campo6 $sesto
$campo7 $settimo
$campo8 $ottavo
$campo9 $nono
$campo_messaggio: $messaggio
$campo10 $decimo
$campo11 $undicesimo
IP: $ipadress
Referrer: $referer
__________________________________________________ __________", "From: $primo <$secondo>");
}
?>
</td>
</tr>
</table>
</body>
</html>
<table align="center">
<tr>
<td><div align=\"center\">
<?
echo "<a href=\"#\" onclick=\"history.go(-1)\">Torna indietro</a>";
?>
</div></td>
</tr></table>
Grazie a chi mi aiuterà
Jack