Can't figure out (php include)

I am having the most difficult time trying to attach my footer to my mailer.php it attaches fine on success, but if I get error it doesn’t attach, i.e like if I leave fields blank or missed @ for email it doesn’t attach my footer, I am hoping there is something ridiculously simple thing but I can’t figure it out. can anyone please please help me with that

the footer I am trying to attach is

<?php include("includes/header.php"); ?>

and my trouble is here:


<?php include("includes/header.php"); ?>
<div id="content_bg">
<div id="wrap">
<div id="title">Contact us</div>
<div id="content">     
<?php
$ip = $_POST['ip']; 
$httpref = $_POST['httpref']; 
$httpagent = $_POST['httpagent']; 
$visitor = $_POST['visitor']; 
$visitormail = $_POST['visitormail']; 
$notes = $_POST['notes'];
$attn = $_POST['attn'];


if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) 
{
echo "<h1>Please check your email!</h1>
"; 
$badinput = "<h1>error message wasn't sent</h1>
";
echo $badinput;
die ("go back! ! ");
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h1>Please fill out all the fields</h1>
";
die ("<h1>click the back button!! </h1>");
}


$todayis = date("l, F j, Y, g:i a") ;

$attn = $attn ; 
$subject = $attn; 

$notes = stripcslashes($notes); 

$message = " $todayis [EST] 

Attention: $attn 

Message: $notes 
 
From: $visitor ($visitormail)

Additional info : IP = $ip 

Browser Information: $httpagent 

";

$from = "From: $visitormail
";


mail("myemail@gmail.com", $subject, $message, $from);

?>

Date: <?php echo $todayis ?> 
<br />
Thank you : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) 
<br />

Attention: <?php echo $attn ?>
<br /> 
Message:<br /> 
<?php $notesout = str_replace("\r", "<br/>", $notes); 
echo $notesout; ?> 
<br />
<?php echo $ip ?> 

<br /><br />
<a href="./contact.php">go back</a> 


</div>
</div>
</div>
<?php include("includes/footer.php"); ?>