[pmwiki-devel] Question about Forms & Actions
editor at fast.st
Mon Dec 11 12:51:17 CST 2006
On 12/11/06, Ben Stallings <Ben at interdependentweb.com> wrote:
> The Editor wrote:
> > Do I have the gist of all this?
> Yep, you've got it!
Excellent, thanks for your patience.
> > To make it configurable, how about setting a SDV value for
> > ZAPformaction = to "action=$ScriptUrl?n=$pagename" and then insert
> > this into the form markup. This way, an admin could overwrite it if
> > desired in a local config file?
> Handier would be for the (:zapform:) markup to allow the destination of
> the form to be specified within the wiki markup. For example,
> (:zapform http://example.com/example.cgi:)
> would produce
> (:input form action=http://example.com/example.cgi method=post:)
> (:input hidden action zap:)
> and so on.
Yes, I like that better too.
> > Let me know if I'm more or less on track and I'll try and work out the
> > code, (or you could supply it to make sure it works for what you
> > need).
> I'll see if I can get that to you this afternoon.
Thanks, that would be helpful. I have several other projects and the
zapform markup is getting a bit complex already! I probably need to
redo it someday and use parse args or something to get it to work more
cleanly. But that will have to wait a while...
More information about the pmwiki-devel