如何在单个页面上显示多个Recaptchas? [英] How do I show multiple recaptchas on a single page?

查看:83
本文介绍了如何在单个页面上显示多个Recaptchas?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一页上有2个表格.其中一种形式具有始终显示的重新拼写.另一个应仅在某些事件(例如,最大程度地尝试登录)后才显示recaptcha.因此,有时我需要2个Recaptchas才能出现在同一页面上.这可能吗?我知道我可能会两者都用一个,但是我有布局的方式,我更希望有两个.谢谢.

I have 2 forms on a single page. One of the forms has a recaptcha displaying all the time. The other should display a recaptcha only after a certain event such as maxing out login attempts. So there are times when I would need 2 recaptchas to appear on the same page. Is this possible? I know I could probably use a single one for both, but the way I have the layout, I would much prefer to have 2. Thanks.

更新:好吧,我想这可能是不可能的.有人可以推荐另一个捕获库与reCaptcha一起使用吗?我真的希望能够在同一页面上有2个验证码.

Update: well I guess it may not be possible. Can anybody recommend another capture library to use side by side with reCaptcha? I really want to be able to have 2 captchas on the same page.

更新2:如果将每个表单都放在iframe中会怎样?这是可以接受的解决方案吗?

Update 2: What if put each form in an iframe? Would this be an acceptable solution?

推荐答案

有人问过类似的问题,要求在ASP页上执行此操作(

A similar question was asked about doing this on an ASP page (link) and the consensus over there was that it was not possible to do with recaptcha. It seems that multiple forms on a single page must share the captcha, unless you're willing to use a different captcha. If you are not locked into recaptcha a good library to take a look at is the Zend Frameworks Zend_Captcha component (link). It contains a few

这篇关于如何在单个页面上显示多个Recaptchas?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆