Guarda, ho tolto proprio tutto tutto quello che c'è prima dell'inizio della parte php ed ho richiamato semplicemente la pagina contatti (www.xxxxx.it/pages/contatti.php)
Quindi il documento inizia proprio con <?php
...e guarda un po:
Warning: Cannot modify header information - headers already sent by (output started at /home/n2434rrt/public_html/pages/contatti.php:1) in /home/n2434rrt/public_html/pages/contatti.php on line 29
Codice PHP:
<?php
if($_GET['knt']=="sendmail"){
if(empty($_POST['nome'])){
$_SESSION['report_nome']=1;
$er_nome=1;
}
if(empty($_POST['email'])){
$_SESSION['report_email1']=1;
$er_mail=1;
}elseif(!ereg("^[a-zA-Z0-9][_\.a-zA-Z0-9-]+@([a-zA-Z0-9][0-9A-Za-z-]+\.)+([A-Za-z]{2,4})",$_POST['email'])){
$_SESSION['report_email2']=1;
$er_mail=2;
}
if(empty($_POST['messaggio'])){
$_SESSION['report_messaggio']=1;
$er_messaggio=1;
}
if($er_nome==1||$er_mail==1||$er_mail==2||$er_messaggio==1){
$_SESSION['refill_nome']=$_POST['nome'];
$_SESSION['refill_email']=$_POST['email'];
$_SESSION['refill_telefono']=$_POST['telefono'];
$_SESSION['refill_messaggio']=$_POST['messaggio'];
header("location: ../index_new.php?page=contatti");
}else{
...ecc..
..ecc..
.ecc..