Title: captcha on custom form
Last modified: December 18, 2016

---

# captcha on custom form

 *  Resolved [yanay](https://wordpress.org/support/users/yanay/)
 * (@yanay)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/captcha-on-custom-form/)
 * Hi
    I want to add captcha to a custom form only, which is hardcoded in its own
   php file. I Installed the plugin and tested my API keys. I tried adding `if( 
   function_exists( 'gglcptch_display' ) ) { echo gglcptch_display(); } ;` like 
   this:….
 *     ```
       			<input type="hidden" name="form_id" value="00000" />
       			<input type="hidden" name="encoding" value="" />
       if( function_exists( 'gglcptch_display' ) ) { echo gglcptch_display(); } ;
       		</form>
       		<?php	
       ```
   
 * …
 * to my custom form’s PHP file but the code is just printed at the bottom of the
   form. Being low on PHP skills, could you provide more detailed instruction as
   to how and where exactly to add the code so the captcha will function on my custom
   form?
    Thank you

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

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/captcha-on-custom-form/#post-8580945)
 * Hi,
 * Thank you for contacting us.
 * Please replace the code you have added earlier with the following one:
 * `<?php if( function_exists( 'gglcptch_display' ) ) { echo gglcptch_display();};?
   >`
 * Sincerely,
    BestWebSoft Support Team
 *  Thread Starter [yanay](https://wordpress.org/support/users/yanay/)
 * (@yanay)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/captcha-on-custom-form/#post-9107156)
 * thank you
    where do I edit this code? I can’t find it in any php file on my server
   using Search function

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

The topic ‘captcha on custom form’ is closed to new replies.

 * ![](https://ps.w.org/google-captcha/assets/icon-256x256.gif?rev=2565249)
 * [reCaptcha by BestWebSoft](https://wordpress.org/plugins/google-captcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-captcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-captcha/)
 * [Active Topics](https://wordpress.org/support/plugin/google-captcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-captcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-captcha/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [yanay](https://wordpress.org/support/users/yanay/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/captcha-on-custom-form/#post-9107156)
 * Status: resolved