I do not know enough about PHP to figure out what is wrong with my contact form. I’m hoping someone can help me fix my contact form. I’m sure it must be a simple fix but can’t figure out what that fix would be.
View the form here:
http://aarongmoore.com/contact/
This is the form’s code:
$name = $_REQUEST ;
$email = $_REQUEST ;
$message = $_REQUEST ;
$subject = $_REQUEST ;
require_once('recaptchalib.php');
$privatekey = "6LcHMr0SAAAAABP9Yj_8lTa4b9mKqoel4JInB5ui";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
?>
header( "Location: http://www.aarongmoore.com/contact/");
die; } ?>
ERROR>
E-Mail or message field(s) empty.
is_valid) { ?>
ERROR>
reCaptcha was not filled in correctly.
die; } ?>