October 21, 2020 at 5:11 am
#10034818
Participant
OK, I got it.
One final question: If I have 2 forms on a single html (not php) page how do I tie them to the recaptcha?
Is the following piece of code correct?
<script src=”https://www.google.com/recaptcha/api.js”></script>
<script>
function onSubmit(token) {
document.getElementById(“formId01”).submit();
document.getElementById(“formId02”).submit();
}
</script>
Thanks,
Pericles