[pmwiki-users] Advice on using captcha with an email form?
heikki.vuolteenaho at tkk.fi
Tue Jul 31 15:49:45 CDT 2007
We are running a website using PmWiki. It has some feedback forms for
users, which have unfortunately been found by spammers. I'm getting
quite annoyed by the amount of spam we are receiving...
I recently noticed a captcha recipe in the pmwiki cookbook:
Surfing a bit more, I found a mailform recipe:
I thought I could easily combine these two to replace our current mail
forms with a spammer-resistant version. I think our current forms are
using the BuildForms recipe and some custom php code.
I managed to create a sample mail form with the captcha image showing,
but could not quite finish the task. Editing the Site.PmFormTemplates, I
could easily use the following line to require some fields to be filled
before the form can be sent:
(:template require from errmsg="$[Missing 'from' address]" :)
But how can I verify that the captcha was input correctly? Or if this is
not currently possible, do you have suggestions on how I could easily
create a captcha-protected mailform?
Thanks in advance!
P.S. I'm quite new to PmWiki (and PHP), so please try to be verbose when
More information about the pmwiki-users