Please fill out the following form to contact Books Electric!
';
foreach ($_POST as $field => $input) {
if(strtolower($field) != 'submit' || strtolower($field) != 'reset'){
$mailBody .= ''.ucfirst ($field) .' : '. trim(strip_tags($input)) . '
';
}
}
//===============================================================
$mailBody .= '';
//===============================================================
$usrMail = $_POST['nicholasbooks@me.com'];
$headers = "From:$usrMail\r\n";
$headers .= "cc:$CCMail\r\n";
$headers .= "Content-type: text/html\r\n";
$sendRem = mail($toMail, $mailSub, $mailBody, $headers);
if($sendRem){
header('location:'.$thanksPage);
exit;
}else{
print 'Failed to send your query.
';
print 'Please Try Later.
';
}
}
?>