I am hoping to get a quick answer to a simple problem.
我正试图在某个地点使用ReCaptcha,该表格目前正在提交销售公司。
在《ReCaptcha》指示中,它告诉我,这项核查是正确的。 然后,如果它通过Ippose,那么它就应当提交。
具体如下:
<?php
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) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn t entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>
If the original form is to submit like the following:
action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST"
How would I handle this within the php script above? Any help is appreciated!