query_first("SELECT image_name, image_background, content FROM cp_pages WHERE name='contact' LIMIT 1"); $content = $contents['content']; $inspir_color = $contents['image_background']; $inspir_image = $contents['image_name']; $success_message = ''; $contacts = array('sales1@cpatpa.com'); //############# Do The Send Stuff ################### if($_REQUEST['action']=='send') { $bad_data = false; $result_ul = '
    '; $result = array(); if((!$_REQUEST['name']) OR (trim($_REQUEST['name'])=='')) { $result[]['result'] = 'You need to enter your name.'; $bad_data = true; } if((!$_REQUEST['email']) OR (trim($_REQUEST['email'])=='')) { $result[]['result'] = 'You need to enter your email address.'; $bad_data = true; } if((!$_REQUEST['title']) OR (trim($_REQUEST['title'])=='')) { $result[]['result'] = 'You need to enter a title.'; $bad_data = true; } if((!$_REQUEST['message']) OR (trim($_REQUEST['message'])=='')) { $result[]['result'] = 'You need to enter a message.'; $bad_data = true; } if ($bad_data == false) { //$_REQUEST['message'] = dowordwrap(strip_tags($_REQUEST['message']), $contactus_wrapafter); $ip_address=((getenv('REMOTE_ADDR')!='') ? getenv('REMOTE_ADDR') : $HTTP_HOST); $_REQUEST['message'] = "Hello". ",\n\nThis is a message sent from ".$_REQUEST['name']. " using the Contact Us feature located on the Creative Plan Administrators website. \n\nResponses to this message should be sent to the email address: ".$_REQUEST['email']. ".\n\nThis is the message:\n\n".$_REQUEST['message']; foreach ($contacts as $contact) { mail($contact,'Contact Us: '.$_REQUEST['title'], $_REQUEST['message'],'From: "Creative Plan Administrators Mailer" <'.$_REQUEST['email'].'>'); } $result[]['result'] = 'Your message has been sent.'; } foreach($result as $res) { $result_ul .= '
  1. '.$res['result'].'
  2. '; } $result_ul .= '
'; $success_message = '

The following are the results of attempting to send your message:

'.$result_ul.'

'; } include("header.php"); include("standard_block_start.php"); $content = $db->query_first("SELECT content FROM cp_pages WHERE name='contact' LIMIT 1"); $content = $content['content']; ?>

Headquarters

Creative Plan Administrators
100 Allyn Street
Hartford, CT 06103 USA
Phone: / Fax: +1.860.656.7982
sales1@cpatpa.com

Please Enter The Requested Information

Your name:

Your email address:

Your message title:

Your Message:

Google Map


Get directions from Google Maps