\r\n";
ini_set('sendmail_from', 'info@coolsolutionsco.com');
// Check to see if this is a postback
if ($_POST["postback"] == "contactForm") {
// Build the messaqge
foreach($_POST as $k=>$v) {
if ($k != "postback" && $k != "x" && $k != "y") {
$message .= " ".$k.": ".$v."\n";
}
}
mail($contactForm_sendTo, $contactForm_subject, $message, $header);
// Construct the string to send
//$domain = ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
//$sendString = "";
//foreach($_POST as $k=>$v) $sendString .= "&".$k."=".$v;
//$sendString .= "&CONTACT_SENDTO=".$contactForm_sendTo;
//$sendString .= "&CONTACT_DOMAIN=".$domain;
//$sendString .= "&CONTACT_CLIENTIP=".$_SERVER['REMOTE_ADDR'];
//$sendString .= "&CONTACT_SUBJECT=".$contactForm_subject;
//$sendString .= "&CONTACT_HEADER=".$contactForm_header;
//if ($contactForm_debug === true) print "
Send String: ".$sendString."
";
// Post this info
//$ch = curl_init("http://www.serverapp.net/mail/mail.php");
//curl_setopt ($ch, CURLOPT_POST, true);
//curl_setopt ($ch, CURLOPT_POSTFIELDS, $sendString);
//curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
//$curlString = curl_exec($ch);
//curl_exec($ch);
//if ($contactForm_debug === true) {
// print "
Curl String: ".$curlString."
";
// $chAr = curl_getinfo($ch);
// print "
Curl GetInfo: ";
// foreach($chAr as $k=>$v) print $k."=>".$v."
";
// print "
";
//} // end if
//
// Redirect them
if ($contactForm_debug === false) {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
header("Location: ". $contactForm_redirect); // redirect
} else print "
Redirect To: ".$contactForm_redirect."
";
exit; // Terminate the script
} // end if
?>
![]() |
![]() |
||||||||
|
|
|
||||||||
|
|
|
||||||||
|
![]() |
||||||||
The Cool Solutions Company provides professional consulting services on a worldwide basis, in three focused areas:
|
Contact |
||||||||
The Cool Solutions Company Thermal Energy Storage (TES) | District Cooling (DC) | Turbine Inlet Cooling (TIC) | Case Histories with Economics |
|||||||||