OK so this is what I'm trying to do, Use variables from one file, that is included in the sites header and use them in an email.
base.php
$site = mysql_query("SELECT * FROM settings") or die('Error: '. mysql_error() );
$row = mysql_fetch_array($site);
// set the Site email address
$site_email = $row['site_email'];
confirm.php
include 'header.php';
$header="from: '$site_email'";
or
$to="'$site_email'";
It does not carry the variable forward so of course the email never gets sent or if it does by setting the $to to a hard coded email address, it comes from the server root address, not the site address.
Your assistance will be greatly appreciated.