|
fetch_field("templates","domain_name","template_id = '".$_SESSION['ses_temp_template']."'"); //unset($_SESSION['ses_temp_contact_obj']); if($_REQUEST['submit_action'] == "save") { if($_SESSION['encoded_captcha'] == $_REQUEST['reg_code']) { $email = $GLOBALS['db_con_obj']->fetch_field("customer_master","cust_email","template_id = '".$_SESSION['ses_temp_template']."'"); $msg_string = "
| Dear Admin, |
| ".ucfirst($_REQUEST['customer_name'])." has sent the contact us request. |
| Request details are as follows: |
| Name |
".$_REQUEST['customer_name']." |
| E-mail Address |
".$_REQUEST['customer_address']." |
| Your Comments |
| ".$_REQUEST['comments']." |
"; $GLOBALS['site_config']['company_name'] = ucfirst($_REQUEST['customer_name']); $GLOBALS['site_config']['admin_email'] = $_REQUEST['customer_address']; $eml_cls = new email(); $eml_cls->email_type = 'html'; $eml_cls->email_subject = "Contact Us Request"; $eml_cls->email_message = $msg_string; $eml_cls->send_email($email); $GLOBALS['site_config']['company_name'] = trim($GLOBALS['db_con_obj']->fetch_field("templates","company_name","template_id='".$_SESSION['ses_temp_template']."'")); $GLOBALS['site_config']['admin_email'] = $email; frame_notices("Thank you for submitting your request.We will get back to you soon !!","greenfont"); if(strlen($domain) > 0) $redirect_url = "http://".$domain."/".$_REQUEST['unique_name']; else $redirect_url = $GLOBALS['site_config']['site_path'].$_SESSION['ses_temp_template_name']."/".$_REQUEST['unique_name']; } else { $insert = 0; frame_notices("Verification code you have entered is wrong !!", "redfont"); foreach($_REQUEST as $ky => $vl) $_SESSION['ses_temp_contact_obj'][$ky] = $vl; if(strlen($domain) > 0) $redirect_url = "http://".$domain."/".$_REQUEST['unique_name']; else $redirect_url = $GLOBALS['site_config']['site_path'].$_SESSION['ses_temp_template_name']."/".$_REQUEST['unique_name']; } unset($_SESSION['encoded_captcha']); unlink($GLOBALS['site_config']['doc_root'].$_SESSION['ses_temp_template_name']."/image/".$_REQUEST['captcha_img_name']); ?>
Phone: 732-287-9979 for New Jersey and NYC customers
|