WordPress.org

Forums

Captcha by BestWebSoft
[resolved] Using Captcha on an HTML form within WordPress (2 posts)

  1. truelux
    Member
    Posted 1 year ago #

    I have the following code in place but the captcha doesn't work :(

    what am I missing here?

    <input type="text" class="user-search" id="reverse_q" name="q" placeholder="Enter Search">
    		<?php if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA." ?>
            <?php if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input type='hidden' name='cntctfrm_contact_action' value='true' />"; echo cptch_display_captcha_custom(); } ?>
    
    	<div class="searchbutton">
    	 <input type="submit" value="Search" class="searchbttn">
    	 </div>

    http://wordpress.org/plugins/captcha/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    The function of captcha's check

    <?php if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA." ?>

    must be inserted to the place, where the form is validated.

    Sincerely,
    Support Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Captcha by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.