English 中文(简体)
如何与重建和重建委员会核实
原标题:How to verify with ReCAPTCHA

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!

最佳回答

简短回答:你可以。

长期回答: 这一行动由你控制,由销售力量控制。 或许,你可以让你核实文字,然后把变数张贴给用户,但这很可能把会议改成销售力量。 几乎没有实际办法。 (我指的是,你可以设法扭转工程师的变动/为用户重建会议,但是,这很可能是使会议正确进行的许多工作,从而可能改变导致会议破裂的东西)。

您的最好要有一个单独的标识,使用ReCaptcha,然后将原来的表格放在标识后面。

问题回答

See this thread: Recaptcha with Salesforce Web-To-Lead

• 建立网络,引导张贴到Captcha联系表确认页面。

<form action="/contactFormConfirm.php" method="POST" >

然后没收确认页,以验证Captcha。 如果把所有领域从你的网络上绘制成主导表格,并安排到销售。

In the thread they share an example for the Captcha contact form confirmation page.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签