[pmwiki-users] Filter and sort data with ZAP

The Editor editor at fast.st
Wed Nov 15 11:13:49 CST 2006


On 11/15/06, Pierre Racine <Pierre.Racine at sbf.ulaval.ca> wrote:
> I understand.
>
> I'm trying to figure how the script work using the doc at http://www.fast.st/zap/pmwiki.php?n=Code.Features
>
> You should add a small example for each form fields listed. For now I get hard time figuring what is their use exactly. For example,
> I don't really understand the syntax of:
>
> (:zapform `required`nextpage=Members.Members`datapage=Memmres.{$newmember}`Member={$newmember}`hidePassword`
> RealName`hideEmail`Country`Age`Gender`savedata`login` :)
>
> An experienced programmer...

Well, there are samples of almost all the features available.  They
are in the snippets section, where you can not only see them but test
them.  But ZAP is still pretty new, and I haven't really had time to
document everything perfectly.  Or more accurately, I've been too busy
adding new features!  This ZAPchat module I'm working on is a huge
job, but will be quite cool...  I hope anyway.

Perhaps the problem is I'm NOT an experienced programmer, so I don't
always use conventional syntax.  The above line is a "lockpattern"
that defines which form fields will be allowed into the form
submission, and where specified, what their values will be.  It is a
safeguard to prevent forged headers when you are allowing untrusted
visitors to submit a form with risky capabilities.  Because ZAP can do
so many things, I've had to build particularly strong security into
it.

If you are cutting and pasting from the snippets be sure to remove line breaks.

Cheers,
Caveman




More information about the pmwiki-users mailing list