<div dir="ltr"><div><div>It doesn't get any clearer than that!<br><br>I will try over the next couple of days to look through the various pages documenting forms and see if there is a good place to include this new (to me, at least) information about $EnablePathInfo.<br>
<br></div>Thanks, as always, for your conscientious and knowledgeable and extremely helpful contribution, Petko!<br><br></div>-Peter<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 8:58 PM, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr" target="_blank">5ko@5ko.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Peter Bowers writes:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On the first one (${PageUrl}, get) it does *not* work.<br>
<br>
On the second one (${PageUrl}, post) it *does* work.<br>
<br>
On the third one (${ScriptUrl?n={$FullName}, get) it *does* work.<br>
</blockquote>
<br></div>
The third method is "post".<br>
<br>
Anyways, I have reviewed the standard specifications here:<br>
<br>
<a href="http://www.w3.org/TR/html401/interact/forms.html#submit-format" target="_blank">http://www.w3.org/TR/html401/<u></u>interact/forms.html#submit-<u></u>format</a><br>
<a href="https://developer.mozilla.org/en-US/docs/HTML/Element/form" target="_blank">https://developer.mozilla.org/<u></u>en-US/docs/HTML/Element/form</a><br>
<br>
and it appears that when you use the "get" method, the browser opens a URL which is constructed by the "action" attribute of the <form> element, with appended "?" then the url-encoded data set. The browsers I tested strip the existing query string from the "action", that is the part starting with "?" and construct the URL like in the standard.<br>
<br>
When PathInfo is enabled, there is no "?..." part in the $PageUrl string, and the browsers don't strip anything; later PmWiki will calculate the pagename variable from the query string, so it works.<br>
<br>
So, when we use a "get" method and when PathInfo is not enabled, we have to add the (:input hidden n {$FullName}:) form field. You can use in the action attribute either {$PageUrl} or {$ScriptUrl}.<br>
<br>
When we use a "post" method (default for PmWiki forms), the standard sets a different encoding format and the browser doesn't strip anything from the action URL. So it works on your site and on mine.<br>
<br>
It is possible that some browsers or browser versions don't strip the existing query string, but recent versions of the major browsers seem to all strip it when a form is submitted via the "get" method.<br>
<br>
Does this reply to your question?<div class="HOEnZb"><div class="h5"><br>
<br>
Petko<br>
<br>
<br>
______________________________<u></u>_________________<br>
pmwiki-devel mailing list<br>
<a href="mailto:pmwiki-devel@pmichaud.com" target="_blank">pmwiki-devel@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel" target="_blank">http://www.pmichaud.com/<u></u>mailman/listinfo/pmwiki-devel</a><br>
</div></div></blockquote></div><br></div>