[pmwiki-users] ZAP email and anti-spam with the random option
editor at fast.st
Fri Oct 27 12:33:51 CDT 2006
On 10/27/06, Christophe David <pmwiki at christophedavid.org> wrote:
> I am still trying to figure out how to take advantage of ZAP, and wonder how
> it would be possible to make a form that sends a mail when submitted, but
> only if one of the fields contains a random value generated with the form.
> It would be a combination of the "Dice" and "Emailform" snippets on
> www.zapsite.org :
> When the form is displayed, it would show images of numbers like "5434", and
> the user would have to type what is shown in order to be allowed to have is
> form submitted.
I don't have more time right now to work on this, but will get to it
as soon as possible. To be honest, the emailing was something not
fully tested, as I have it disabled on zap, and I can't get my home
server to work with emails right. But will get it going for you,
hopefully over the weekend. It was working before, but much of the
code has been reworked. It's probably something minor.
As for the random number option I think that can be done pretty easy.
I'll add a line of code to the zapget directive to return a random
number given a certain flag, and make it available as a page variable
you can use in the form with conditionals to avoid spamming. Great
idea! And not hard to do.
Uh displaying the numbers are easy. Do you absolutely need pictures?
Anyway, if you can wait through the weekend, I'll get you taken care
More information about the pmwiki-users