multiple instances
-
Would be *extra sweet* if I could use multiple captchas on a single page. I’ve got a single page with multiple (tabbed) forms for registration and password reset. I would like to have separate sweet captchas for each of these tabs, but it doesn’t seem to work. The second one doesn’t allow me to drop the item on the target image. Here’s the codez I’m using to generate the captchas:
function my_get_captcha_html(){ global $sweetcaptcha_instance; $result = $sweetcaptcha_instance->get_html(); if (isset($_POST['errors'])){ $msg = $_POST['errors']->get_error_message('sweetcaptcha'); if($msg != '') $result .= '<script type="text/javascript">jQuery("#captchi").addClass("field_error");</script><span class="field_error">'.$msg.'</span>'; } return $result;
Is this possible? (using sweet captcha v2.4.3.6)
https://www.ads-software.com/extend/plugins/sweetcaptcha-revolutionary-free-captcha-service/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘multiple instances’ is closed to new replies.