This within my html file??
<form id="form1" name="form1" method="post" action="sendmail.php">
*<!-- ... more of your form code here ... -->*
<td colspan="2"><div align="right"><script type="text/javascript"
src="
http://api.recaptcha.net/challenge?k=your_public_key">
</script>
<noscript>
<iframe src="
http://api.recaptcha.net/noscript?
k=your_public_key"
height="300" width="500" frameborder="0"></iframe>
<?php
require_once('recaptchalib.php');
$publickey = "your_public_key";
echo recaptcha_get_html($publickey);
?>
<br>
</noscript>
</div></td>
*<!-- ... more of your form code here ... -->*
</form>
& this within my php file??
<?php
*<!-- ... more of your php code here ... -->*
require_once('recaptchalib.php');
$privatekey = "your_private_key";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
die ("The reCAPTCHA wasn't entered correctly. Go back and try it
again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
mail( "
ea...@addy.com.au", "Online Quotation Request",
$message, "From: $email" );
header( "Location:
http://www.yourdomain.com.au/thankyou.html" );
}
?>