0

Using Seblod I created a form where users can enter their name, email id and captcha. They can view next page only when they fill this correctly. To go to next page, I gave url redirection feature (site form->configuration).

But now page redirects to next page even if user enters wrong captcha. How to make the redirection happen only when entered captcha is correct?

4

1 回答 1

0

验证码会有一个if声明,如果它是正确的,它会继续前进,否则什么也不会发生并且验证码会重置。

提交表单后重定向用户的代码需要放在if语句中。

打开 recaptchalib.php 并转到第 184 行,您将在其中看到以下内容:

if (trim ($answers [0]) == 'true') {
      $recaptcha_response->is_valid = true;
      //Redirect Code
}

在我添加评论的地方,尝试添加您的重定向代码

于 2012-10-12T14:28:51.250 回答