you wrote this line data: "recaptcha_response_field=" + responseField + "&recaptcha_challenge_field=" + challengeField,. Wrong.
you can try the following:
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
or data: {recaptcha_response_field : responseField , recaptcha_challenge_field :challengeField
thanks Chintu
source
share