Captcha test in PHP code (e.g. for SendForm) |
Post Reply |
Author | |
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
Posted: Oct 27 2015 at 2:58pm |
Hi.
When you send form data using the Send Form element, you should process POST data yourself with some PHP code. If you add a Captcha to your form and want to test whether user entered a correct value, here's the code (it could have been much simpler but there are several bugs in the OE code, which will be fixed for next versions):
You can insert this code into a Code Block (Source) type PHP position StartDocument, or elsewhere.
Edited by Dmit OE - Oct 27 2015 at 3:03pm |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
P.S. For (future) versions later than 1.50R4, the code would be:
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |