Custom Page - User Info (v2017)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Custom Page - User Info (v2017)

Post by johnberman »

Hi

I have a custom page and have included the common headers and footers

At the top of the page I want to echo out something like

Logged in: Yes

and if its a yes then Hello: name

or if not logged in then Logged in: No

Pointers appreciated

Regards
John B


mobhar
User
Posts: 11702

Post by mobhar »

Try:

if (IsLoggedIn()) {
echo "Yes<br>";
echo "Hello: " . CurrentUserName() . "<br>";
} else {
echo "No<br>";
}


Post Reply