[pmwiki-devel] page content shows on wrong page

Hans design5 at softflow.co.uk
Wed May 2 11:23:07 CDT 2007

Wednesday, May 2, 2007, 4:25:59 PM, Patrick wrote:

> I think the action= value of the form should be {$PageUrl}
> instead of {$ScriptUrl}.  That way if the post fails,
> the user is correctly placed on the page that contained
> the form and not Main.HomePage.

Yes, but I am failing to get the right php code for this.
The (:fox ..:) markup defines for output

 "<form action='$ScriptUrl' method='post' ".

If I change the above $ScriptUrl to $PageUrl (and declare global $PageUrl)
I get action='' in the HTML output.

If I use

  "<form action='{$PageUrl}' method='post' ". ....
 "<form action='".$PageUrl."' method='post' ". ....

I don't get an action either. So I have not learned how to insert the
variable. Why does $ScriptUrl work fine inside the markup function,
but $PageUrl is not? What am I missing? $PageUrl is empty. How do I
get  a value for it inside the markup function?


More information about the pmwiki-devel mailing list