Title: Validation error PHP
Last modified: January 20, 2017

---

# Validation error PHP

 *  Resolved [kevingobert](https://wordpress.org/support/users/kevingobert/)
 * (@kevingobert)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/validation-error-php/)
 * Hi.
 * Thanks for your plugin.
 * I use the official library [https://github.com/google/recaptcha](https://github.com/google/recaptcha)
   on the backend side to check the answer.
 * The answer is always false. I have tested the reCaptcha by integrating it into
   my page and it works.
 * Strangely, if I comment on line 162 of the plugins ‘<! – <input type = “hidden”
   name = “<!–<input type=”hidden” name=”<?php echo $field[‘name’]?>”>–>’ Validation
   is correct
    -  This topic was modified 9 years, 4 months ago by [kevingobert](https://wordpress.org/support/users/kevingobert/).
    -  This topic was modified 9 years, 4 months ago by [kevingobert](https://wordpress.org/support/users/kevingobert/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [kevingobert](https://wordpress.org/support/users/kevingobert/)
 * (@kevingobert)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/validation-error-php/#post-8678230)
 * I understand. The validation is done automatically and therefore normally in 
   backend, I no longer need to do it?
 * But if the ReCaptcha expires, the field does not empty. So we lose the validation
    -  This reply was modified 9 years, 4 months ago by [kevingobert](https://wordpress.org/support/users/kevingobert/).
 *  Plugin Author [Irvin Lim](https://wordpress.org/support/users/irvinlim/)
 * (@irvinlim)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/validation-error-php/#post-8678303)
 * Hi Kevin,
 * Thanks for reaching out.
 * You are correct, I have already included the validation from the exact same library(
   see line 241), so you would not need to verify the validity of the recaptcha 
   value yourself.
 * I’m not too sure of the behaviour when you perform verification twice, but perhaps
   that is the problem. You can simply just use the plugin as it is, and it should
   be valid.
 * Hope this helps! Do let me know if you still encouter any issues.
 * Cheers!
 * Irvin Lim

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Validation error PHP’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields-recaptcha-field/assets/icon-256x256.
   png?rev=1682143)
 * [Advanced Custom Fields: reCAPTCHA Field](https://wordpress.org/plugins/advanced-custom-fields-recaptcha-field/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-recaptcha-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-recaptcha-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-recaptcha-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-recaptcha-field/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Irvin Lim](https://wordpress.org/support/users/irvinlim/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/validation-error-php/#post-8678303)
 * Status: resolved