An error occurred in script '$e_file' on line $e_line: $e_message\n
"; //*** date and time of error ***// $message .= "Date/Time:" . date ('n-j-Y H:i:s') . "\n
"; $message .="
" . print_r ($e_vars, 1) . "
\n

"; if(!LIVE) { echo '
'; $message . '

'; } else { mail('test@rockintuitdesign.com', 'Site Error!', $message, 'From: info@rockintuitdesign.com'); if($e_number != E_NOTICE) { echo '
A system error occurred. We would apologize, but we are a computer!

'; } } } set_error_handler ('my_error_handler'); // Check for form submission: if (isset($_POST['submitted'])) { $errors = array(); function spam_scrubber($value) { // List of very bad values: $very_bad = array('to:', 'cc:', 'bcc:', 'content-type:', 'mime-version:', 'multipart-mixed:', 'content-transfer-encoding:'); // If any of the very bad strings are in // the submitted value, return an empty string: foreach ($very_bad as $v) { // START STRIP FUNCTION if (!function_exists("stripos")) { function stripos($value, $v) { return strpos(strtolower($value),strtolower($v)); } } // END STRIP FUNCTION } // END OF FOR EACH // Replace any newline characters with spaces: $value = str_replace(array( "\r", "\n", "%0a", "%0d"), ' ', $value); // Return the value: return trim($value); } // End of spam_scrubber() function. // Clean the form data: $scrubbed = array_map('spam_scrubber', $_POST); // Check for a name: if (preg_match ('/^[A-Z \'.-]{2,20}$/i', $scrubbed['name'])) { $nm = $scrubbed['name']; } else { $errors[] = 'Please enter your name!'; } // Check for a company name: if (preg_match ('/^[A-Z \'.-]{2,60}$/i', $scrubbed['companyName'])) { $cn = $scrubbed['companyName']; } else { $errors[] = 'Please enter your company name!'; } // Check for an email address: if (preg_match ('/^[\w.-]+@[\w.-]+\.[A-Za-z]{2,6}$/', $scrubbed['email'])) { $e = $scrubbed['email']; } else { $errors[] = 'Please enter a valid email address!'; } // Check for a message: if (preg_match ('/^[A-Z \'.-]{1,500}$/i', $scrubbed['message'])) { $m = $scrubbed['message']; } else { $errors[] = 'Please enter a message!'; } if (empty($errors)) { // Create the body: $body = "Company Name: {$cn}\n\n\rName: {$nm}\n\n\rMessage: {$m}\n\n\rEmail: {$e}\n\n\r"; $body = wordwrap($body, 500); mail('test@rockintuitdesign.com', 'Website Contact', $body, "From: {$e}");// Send the email: $_POST = array(); header('location:http://www.atlanticservicesgroup.net/thankyou.html'); exit(); } // End of ERROR If ?> Contact Us
FAIL (the browser should render some flash content, not this).
Who We Are »    

Why Atlantic »    

Contact Us »    


FIND US ON












Get Directions
Click below to get directions to any of our locations:
Georgia

Alabama

Florida

North Carolina/South Carolina – Charlotte

North Carolina – Raleigh

Texas

Contact By Email
The following error(s) occurred:
'; foreach ($errors as $msg) { // Print each error. echo " - $msg
\n"; } echo '

Please try again.

'; } // End of if (empty($errors)) IF. } // End of submit conditional. ?>
Your name:



Company name:



E-mail:



Message:



Contact By Phone

CORPORATE
Georgia - Atlanta
Phone: 800.610.2024
FAX: 877.849.9871

Alabama - Birmingham
Phone: 205.731.2152
Fax: 205.458.9814

Florida - Orlando
Phone: 407-834-6120
Fax: 407-834-7125

North Carolina/South Carolina - Charlotte
Phone: 704.357.9301
FAX: 704.357.9310

North Carolina - Raleigh
Phone: 919-651-9276
FAX: 919-651-9263

Texas - Houston
Phone: 713-670-0689
Fax: 713-670-0905