$value) { $$key=$value; } $support_email = "contact@compucert.com"; if(isset($submit_contact)){ $msg = ""; if(trim($name) == ""){ $msg .= 'Please enter your name in the name box.
'; } if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) { $msg .= 'Please provide a valid email.
'; } if(trim($phone) == ""){ $msg .= 'Enter a phone number for us to contact you.
'; } if(trim($web) == ""){ $msg .= 'Please enter a valid web address.
'; } if($msg != ""){ $msg = '

' . $msg . '

'; } else { //send email notification and put to db $action_date = date("Y-m-d H:i:s"); $query_addContact = "INSERT INTO tbl_contact (name,email,phone,web,comment,action_date,status) VALUES ('". $name . "','$email','" . $phone . "','$web','" . $comment . "','$action_date',1)"; //$query_addContact = "INSERT INTO tbl_contact (name,email,phone,web,comment,action_date,status) VALUES ('". mysql_escape_string($name) . "','$email','" . mysql_escape_string($phone) . "','$web','" . mysql_escape_string($comment) . "','$action_date',1)"; //$msg = $query_addContact; $result = $cartweaver->db->executeQuery($query_addContact); if($result){ $strSubject = "Compucert Affiliate"; $strMessage = "Thank you for your inquiry regarding the Compucert Affiliate program. We will be in touch with you shortly.\r\n\r\nRegards,\r\nCompucert Sales\r\n(888) 415-0575"; $strMailFrom = 'From: '. $support_email . "\r\n" .'Reply-To: '. $support_email . "\r\n"; mail($email,$strSubject,$strMessage,$strMailFrom); $strMessage = "Name: $name\r\nPhone: $phone\r\nComment: $comment\r\n"; $strMailFrom = 'From: '. $email . "\r\n" .'Reply-To: '. $email . "\r\n"; mail($support_email,$strSubject,$strMessage,$strMailFrom); $msg = '

Your Inquiry has been submitted. We will be in contact with you shortly.

'; $name = ""; $phone = ""; $email = ""; $support_selected1 = ""; $support_selected2 = ""; $support_selected3 = ""; $support_selected4 = ""; $comment = ""; } else { $msg = '

We apologize that we cannot submit your inquiry at this time. Please call support for assistance.

'; } } } else { $msg = '

To apply to become a Compucert.com affiliate please complete the form below.

'; } ?> IT Project Manager Career Description and Job Information | CompuCert