How to use multiple forms with recaptcha on the same page?

Thanks for reading. My problem is that I have multiple tabs, each containing a form, and I was hoping that each also contains a recaptcha. The problem is only showing the first recaptcha. You can see what I mean by this page .

Another solution that I'm not too sure how to do this might be to have 1 recaptcha used by each form, since only one form can be submitted at a time, but the form must be split to have a recaptcha before submitting button.

Any help on any of the solutions would be much appreciated (and also won't let me pull my hair out). Thank you for your time.

Sorry if I didn't give enough details. Here is the end of one of the shapes. They are all pretty much the same for this moment.

<div class="row-textarea"><div class = "label">Review: </div>
  <textarea id="msg" name="content"  required></textarea>
</div>


<div class="captcha">
<?php
     require_once('HIDDEN/recaptchalib.php');
     $publickey = "HIDDEN";
     echo recaptcha_get_html($publickey);
?>
</div>

<button class ="button" type="submit">Submit</button>

</form>

      

What would be ideal would be to remove the captcha div from the form, but still have it in front of the submit button.

Just by thinking, the submit button is the same for all forms. Will there be a way for the tabs to change the whole form before recording and leave everything after filling out the form. This gives me the opportunity to think.

+3


source to share


2 answers


I managed to get the result I wanted with the method I mentioned in my last edit. If anyone else has this problem (which probably won't), as I fixed, it was only necessary to use one recaptcha located after the forms and then use positioning to put the submit button after the recaptcha.



Quite simple now that I think about it. Sorry for wasting all your time, I'm still pretty new to web design and this seems like a rookie problem. Thanks again for your time.

0


source


Sorry if anyone is reading this for a solution, but the previous solution doesn't work either. The recapsha must be in shape. I also have a word count that can also work for just one form. So I decided to create links to a page that loads one form depending on the link I chose. Not that I would have liked it, but he did the job.



0


source







All Articles