"; } if (!empty($_POST['lname'])) { $lname = $_POST['lname']; } else { $error .= "You didn't type your last name.
"; } if (!empty($_POST['email'])) { $email = $_POST['email']; if (!preg_match("/^[a-z0-9]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i", $email)){ $error .= "The e-mail address you entered is not valid.
"; } } else { $error .= "You didn't type in an e-mail address.
"; } if (!empty($_POST['message'])) { $message = $_POST['message']; } else { $error .= "You didn't type in a message.
"; } if(($_POST['code']) == $_SESSION['code']) { $code = $_POST['code']; } else { $error .= "The captcha code you entered does not match. Please try again.
"; } if (empty($error)) { $from = 'From: ' . $fname . ' <' . $email . '>'; $to = "worldwebarts@gmail.com"; $subject = "New contact form message from Orange County"; $content .= "First Name: ".$fname."\n"; $content .= "Last Name: ".$lname."\n"; $content .= "Title/Position: ".$title."\n"; $content .= "Company: ".$company."\n"; $content .= "Address: ".$address."\n"; $content .= "City: ".$city."\n"; $content .= "State: ".$state."\n"; $content .= "Phone: ".$phone."\n"; $content .= "Fax: ".$fax."\n"; $content .= "Email: ".$email."\n"; $content .= "Subject: ".$subject."\n"; $content .= "Message: ".$message."\n"; $success = "

Thank you! Your message has been sent!

"; mail($to,$subject,$content,$from); echo ' '; } } ?>
2952 Century Place Costa Mesa, CA 92626
714-526-6549

Contact:

The team at Orange County Air Conditioning values your time. Fill out the contact form below and we will be in touch with you within 24 hours.

Orange County Air Conditioning
2952 Century Place Costa Mesa, CA 92626
California Business License: #310312

Office phone: 714-526-6549
Fax: 714-526-0446
Email: ocair@ocachvac.com

Your message was NOT sent
The following error(s) returned:

' . $error . '

'; } elseif (!empty($success)) { echo $success; } ?>