[pmwiki-devel] page content shows on wrong page

Hans design5 at softflow.co.uk
Wed May 2 13:57:05 CDT 2007


Wednesday, May 2, 2007, 5:36:20 PM, Patrick wrote:

> Because $PageUrl is a *page variable*, not a global variable.
> In order to determine the url of a page, we have to know the
> name of the page (which might not be the same as the currently
> displayed page).

> To get the value of a page variable, use PageVar():

>    "<form action='" . PageVar($pagename, '$PageUrl') . "' ... "

Thank you! This is working just fine and I will adopt it.

Can you tell why the following is also working:

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

It displays the right page url. But in the HTML it reads

  <form action='{$PageUrl}' method='post' >

which looks a bit dodgy.


Hans




More information about the pmwiki-devel mailing list