greggilbert / recaptcha

[ABANDONED] reCAPTCHA Validator for Laravel 5
MIT License
713 stars 196 forks source link

Multiple recaptcha on one page #27

Closed iaroel closed 10 years ago

iaroel commented 10 years ago

Hi is it possible to use 2 recaptcha on one page in two different forms?

greggilbert commented 10 years ago

I don't believe so. What would the use case for that be?

iaroel commented 10 years ago

I have 2 forms on the page one of them is a contact form and the other one is a get a quote form which is visible on every page.

greggilbert commented 10 years ago

Ah, I see. Honestly, I'm not sure. The view has a single statically named field, so I guess as long as you kept the values correct when validating, it should be okay.

iaroel commented 10 years ago

Hi Greg,

Yes same values are working but its only showing one of the captcha images not all.

amirkheirabadi73 commented 9 years ago

hi ... yes i have problem like this .... how put two recaptch in one page ....????

greggilbert commented 9 years ago

The official documentation has answers on how to do this. You'd have to bypass the Form::captcha() stuff and render it on your own via Javascript. The lines in the validator should be the same, though.