Email:
Subject:
Message:
";
}
?>
Your message has been sent!
Something went wrong, go back and try again!
'; } } else if ($_POST['submit'] && $human != '4') { echo 'You answered the anti-spam question incorrectly!
'; } if ($_POST['submit']) { if ($name != '' && $email != '') { if ($human == '4') { if (mail ($to, $subject, $body, $from)) { echo 'Your message has been sent!
'; } else { echo 'Something went wrong, go back and try again!
'; } } else if ($_POST['submit'] && $human != '4') { echo 'You answered the anti-spam question incorrectly!
'; } } else { echo 'You need to fill in all required fields!!
'; } } ?>