Contact Us

If you have any questions or comments, please don’t hesitate to contact us!

{$message}

“;
else $response = “

{$message}

“;
if(!$human == 0){
if($human != 2) my_contact_form_generate_response(“error”, $not_human); //not human!
else {

//validate email
if(!filter_var($email, FILTER_VALIDATE_EMAIL))
my_contact_form_generate_response(“error”, $email_invalid);
else //email is valid
{
//validate presence of name and message
if(empty($name) || empty($message)){
my_contact_form_generate_response(“error”, $missing_content);
}
else //ready to go!
{
$sent = wp_mail($to, $subject, strip_tags($message), $headers);
if($sent) my_contact_form_generate_response(“success”, $message_sent); //message sent!
else my_contact_form_generate_response(“error”, $message_unsent); //message wasn’t sent
}
}
}
else if ($_POST[‘submitted’]) my_contact_form_generate_response(“error”, $missing_content);
}
?> get_header(); ?>

Name: *
Email: *
Message: *