The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
MathCAPTCHA - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: MathCAPTCHA (/showthread.php?tid=881) |
MathCAPTCHA - Mike - Oct 7th, 2010 reCAPTCHA is good if your users speak English - they can guess the word, because they know it. Those who do not speak English, forced to guess each letter that is not always possible. There is a universal language that everyone knows: the mathematics. So I wrote a CAPTCHA script prompts the user to solve a simple equation:[attachment=76] N.B. I assume that you are using Form Tools API method to submit your form. To use it in your form, unzip and upload folder "captcha" to your webserver. 1) If you not using server-side validation.
1) If you using server-side validation
Code: Solve this simple equation: <img src="/captcha/math_captcha.php"> = <input type="text" name="math_c_val" maxlength="5" size="5"> Now, if everything works right, you will see something like this:[attachment=75] You can tune CAPTCHA image by changing parameters in section "Config" in file "math_captcha.php" RE: MathCAPTCHA - Ben - Oct 8th, 2010 Very cool! Thanks for posting your code! - Ben |