1. Have you tested the recaptcha code actually works?
This code does at can be viewed at
http://herlug.org.uk/test/recaptcha/php/recaptchatest.php
<html>
<body>
<form action="" method="post">
<?php
require_once('recaptchalib.php');
// Get a key from http://recaptcha.net/api/getkey
$publickey = '';
$privatekey = '';
# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;
# was there a reCAPTCHA response?
if ($_POST["recaptcha_response_field"]) {
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if ($resp->is_valid) {
echo "You got it!";
} else {
# set the error code so that we can display it
$error = $resp->error;
}
}
echo recaptcha_get_html($publickey, $error);
?>
<br/>
<input type="submit" value="submit" />
</form>
</body>
</html>
Note you don't need a separate input field for the recaptcha - it is
already in the recaptcha.
You also need to use the relevant recaptcha form variables,
recaptcha_challenge_field and recaptcha_response_field
Lastly you can't have two recaptchas on one form unless you use the AJAX method.
Regards