Bringing new life to your business,
Like a reborn Phoenix rising from the flames. Contact Rising Flame, Inc.
Rising Flame, Inc. 333 West Case Street Kuna, Idaho 83634 Phone: (208) 841-5468 Email: info@risingflame.com Or use the form below to send your inquiry.... $page = "contactus.php"; function print_form() { global $page, $error, $comments, $print_again, $HTTP_POST_VARS; $fields = array("first_required" => "text", "last_required" => "text", "company" => "text", "address" => "text", "phone" => "text", "email_required" => "text"); $labels = array("first_required" => "*First Name", "last_required" => "*Last Name", "company" => "Company Name", "address" => "Address", "phone" => "Phone Number", "email_required" => "*Email"); ?> } // end function print_form function error_flag($error, $field) { if($error[$field]) { print("");
} else {
print(" | ");
}
} //end funcion error_flag
function check_form() {
global $error, $print_again, $HTTP_POST_VARS;
$print_again = false;
//Check Required Fields Have Been Entered
foreach($HTTP_POST_VARS as $key => $value)
{
if(($value == "") && eregi("_required$", $key))
{
$error[$key] = true;
$print_again = true;
}
else
{
$error[$key] = false;
}
}
//Verify Email
if(!eregi("^[a-z0-9]+[a-z0-9_-]*(\.[a-z0-9_-]+)*@[a-z0-9_-]+(\.[a-z0-9_-]+)*\.([a-z]+){2,}$", $HTTP_POST_VARS['email_required']))
{
$error['email_required'] = true;
$print_again = true;
$HTTP_POST_VARS['email_required'] = "ENTER A VALID EMAIL";
}
//Print Again If Errors Are Found
if($print_again)
{
print_form();
}
else
{
print(" |
Thank you for contacting Rising Flame, Inc.! We will respond to you promptly."); // Do database insert, email, etc. Since Data Is OK //THIS IS WHERE YOU EDIT HOW THE USER DATA WILL BE SHOWN ON EMAILS. EDIT INSIDE THE DOUBLE QUOTES ONLY. //DO NOT TOUCH THE VARIABLES THAT BEGINS WITH '$' SIGN UNLESS YOU KNOW WHAT YOU'RE DOING. $ip = $_SERVER['REMOTE_ADDR']; $browser = $_SERVER['HTTP_USER_AGENT']; $server = $_SERVER['SERVER_NAME']; $today = date("F j, Y, g:i a"); // March 3, 2004, 5:16 pm $SiteName = "Rising Flame, Inc."; $SiteEmail = "info@risingflame.com"; $SiteAddress = "www.risingflame.com"; $SiteCompanyMessage = "Bringing new life to your business, like a Phoenix rising from the flames."; $FirstName = $HTTP_POST_VARS['first_required']; $LastName = $HTTP_POST_VARS['last_required']; $Email = $HTTP_POST_VARS['email_required']; $Address = $HTTP_POST_VARS['address']; $Phone = $HTTP_POST_VARS['phone']; $Company = $HTTP_POST_VARS['company']; $Comments = $HTTP_POST_VARS['comments']; ///////////////////////////////////////////////////////// ///****************END CONFIGURATION*****************/// /////////////////////////////////////////////////////// //AUTORESPONDER MESSAGE $AutoResponse = "\n"; $AutoResponse .= "Dear $FirstName $LastName,\n\n"; $AutoResponse .= "Thank you for contacting Rising Flame, Inc.! Your Message is shown below:\n\n"; $AutoResponse .= "\n"; $AutoResponse .= "Received on $today \n\n"; $AutoResponse .= "$FirstName $LastName, $Email submitted the following information:\n"; $AutoResponse .= "$Company\n"; $AutoResponse .= "$Address\n"; $AutoResponse .= "$Phone\n"; $AutoResponse .= "$Comments\n\n"; $AutoResponse .= "*************************\n\n\n"; $AutoResponse .= "Thank you for business and allowing us to be of service to you. We will respond to you promptly.\n\n\n"; $AutoResponse .= "Kind regards,\n$SiteName\n$SiteAddress\n$SiteCompanyMessage.\n\n"; $AutoResponse .= "*************************\n"; $AutoResponse .= "This e-mail was generated by a mail handling system. It was sent automatically upon submission.\n"; $AutoResponse .= "*************************\n"; mail($Email, "$SiteName Contact Us", $AutoResponse, "From: info@risingflame.com\r\n"); //END OF AUTORESPONDER //ADMIN MESSAGE $AdminMessage = "\n"; $AdminMessage .= "Received on $today \n\n"; $AdminMessage .= "$FirstName $LastName, $Email, submitted the following information:\n"; $AdminMessage .= "$Company\n"; $AdminMessage .= "$Address\n"; $AdminMessage .= "$Phone\n"; $AdminMessage .= "$Comments\n\n"; $AdminMessage .= "*************************\n"; $AdminMessage .= "Additional Info:\n"; $AdminMessage .= "Reply to: $Email \n"; $AdminMessage .= "IP Address: $ip \n"; $AdminMessage .= "Brower: $browser\n"; $AdminMessage .= "Server: $server\n"; $AdminMessage .= "\n\n"; $AdminMessage .= "*************************\n"; mail($SiteEmail, "$SiteName Contact Us", $AdminMessage, "From: $Email\r\n" . "Reply-To: $FirstName $LastName, $Email"); } } // end function check_form /***** MAIN *****/ if(isset($submit)) { check_form(); } else { print_form(); } ?>Copyright 2003-2006 Rising Flame, Inc.
Kuna, Idaho All rights reserved |