[pmwiki-users] Creating a new page with GET/POST variables (or a form)
alglt at yahoo.com
alglt at yahoo.com
Fri Nov 9 14:35:24 CST 2007
Hans (2007-11-09 19:28):
> Friday, November 9, 2007, 7:12:47 PM, alglt at yahoo.com wrote:
>
> > The outcome of this is that I cannot rely on such a form:
>
> > (:input form "{$ScriptURL}":)
> > (:input hidden action edit:)
> > (:input hidden template Blog.Template:)
> > (:input text pagename "Blog.This is a test":)
> > (:input end:)
>
> > Or maybe there is some separate GET/POST variable, which could be used
> > to designate a WikiGroup of a new page?
>
> I think the pagename input should go through the
> MakePageName function first in the script processing the input form,
> before being used as page name.
>
> ~Hans
>
>
But this input form isn't parsed in any script except pmwiki core,
in that pmwiki already uses these $_REQUEST variables during processing.
So when the form is posted, the server at {$ScriptUrl} gets this:
action=edit&template=Blog.Template&pagename=Blog.This+is+a+test
exactly as in the URL I proposed in my original message.
Maybe the actual question should've been whether PmWiki supports
specifying both, the pagename and the action for the pagename in one
request, as POST/GET variables.
But I think it does, as
http://pmwiki.org/index.php?n=PmWiki.MyTest1&action=edit
works fine, but not when the pagename has spaces (encoded in either '+'
or '%20').
--
Algardas
More information about the pmwiki-users
mailing list