I have a custom form in html page. I already added the code to display the captcha and it shows up fine. However the form still goes through even though the answer is wrong.
My question is, where do I put this code:
<?php if( function_exists( 'cptch_check_custom_form' ) && cptch_check_custom_form() !== true ) echo "Please complete the CAPTCHA." ?>
Is it right in the form or in the functions.php? I tried putting it in the form just like the first code, but it doesn’t work.
Please advise. Thank you!
- The topic ‘Validating code on custom form?’ is closed to new replies.