From the html perspective: Just because some tags are inside the <form>...</form> tag it doesn't make them part of the form or hinder their submit. You can also have any html there just as decoration or instruction of the form, it doesn't change the form behaviour.
You seeem to have followed
Referring to
the influence of this div tag within your form tag is an automatically added POST variable, when the widget is used. This additional post parameter has to be checked from your server side script (form action). If your form data comes without eg PHOP variable $_POST["g-recaptcha-response"] being set, the user has not used the widget and the submit should be interpreted as not coming from a human user. Even if it's set
it should be set true, when the challenge of the widget has been fulfilled. it has to be verified with doing a specific POST request to
with your secret key, the g-recaptcha-response value and the end user ip.
So in short just adding the div is not the only step to take, there are several more, it's not a simple thing to integrate, as you need a server side script and do some steps.
In short it works this way: The widget is displayed and if the user has fulfilled the challenge an input vaue is added to the html form. So far only Google knows the user is human or not. Your serverside script now needs to verify the value it got from your html form with Google. Google then either confirms, that this user verification challenge response really came from google and the user was verified or not.
Bye, Olaf.