• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hooking reCAPTCHA into forms HTML output automatically

I am using the Ci-Bonfire mod for CodeIgniter 2.1 and have a question.

When enabled, I would like my HMVC Anitspam module for Bonfire to automatically add a reCAPTCHA form to any public user forms (register, contact, login, etc). I am thinking of using a hook to accomplish this, but I'm not sure the best approach. The hook would need to:

- Capture the form HTML output and inject the reCAPTCHA form
- Hook into the form submission and validate the reCAPTCHA submission before proceeding with processing the rest of the form validation and handling
- Set a template message, break form handling and render an error message to the view

I've not messed with hooks much outside of Wordpress, so I'm appreciative for any helpful advice or suggestions. Thanks.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.