This question has been asked before: New Google ReCaptcha not posting/receiving 'g-recaptcha-response' - but there was no proper answer.
I have the exact same set up as him, but the code fails here:
if(!$captcha){
exit;
}
so $captcha=$_POST['g-recaptcha-response']
seems to be empty.
new google recaptcha with checkbox server side php = The 2nd answer here also doesn't seem to work.
Does anyone know why this could happen?