[pmwiki-users] Previous Page

Peter Bowers pbowers at pobox.com
Tue Feb 7 10:51:21 CST 2012

On Tue, Feb 7, 2012 at 5:21 PM, Daniel <dkml at xs4all.nl> wrote:
> $pagename = ResolvePageName($pagename);
> if ($pagename != $prevpage) {
>  $prevpage          = ResolvePageName($prevpage);
>  $FmtPV['PrevPage'] = PageVar($prevpage, '$FullName');
>  $prevpage          = $pagename;
> }

You would have to save it in your session or a cookie rather than just
in a variable if you want the value to remain between successive loads
of pages.

All normal PHP variables are destroyed (lose their values) at the
conclusion of the processing of the current page.


More information about the pmwiki-users mailing list