[pmwiki-users] Print variables collected with Build Forms from $_SESSION to a wiki page

Radu radu at monicsoft.net
Thu Aug 4 15:38:45 CDT 2005


OK, I don't get it. If page 2 is generated by his 
custom test.php, then how does he have access in there to the pmwiki Markup() ?

I probably missed something :)

At 04:02 PM 8/4/2005, Patrick R. Michaud wrote:
>On Thu, Aug 04, 2005 at 03:17:13PM +0000, François Bekaert wrote:
> > So, I wanted in the Step2 wiki page to have access to the values stored
> > previously. I've tried a lot of things but nothing is working...
> >
> > - addind start_session() in test.php
> > - make the redirection with a meta refresh
> >
> > doesn't arrange the problem...
> >
> > How does I write $_SESSION['UserName'] in the 
> wikipage to be replaced by his
> > value ?
>
>Sounds to me like you need a custom markup:
>
>   Markup('{$UserName}', '{$var}',
>     "/{\\\$UserName}/",
>     $_SESSION['UserName']);
>
>Then the {$UserName} markup can be used in the Step2 page to display
>the value of $_SESSION['UserName'].

Cheers,
Radu
(www.monicsoft.net) 





More information about the pmwiki-users mailing list