This topic is locked

Set text on page to global variable

10/27/2023 9:57:25 AM
PHPRunner General questions
author

I have a gobal variable I set After Successful Login.
Now I want to assign this variable to a text item I inserted on a page
{$_SESSION["StationName"]}Can I get some help please

C
cristi 10/27/2023

"a page" - what page???
The text item is a field in your database table??? or a simple text inserted using html -> text from the designer???
If it is a field use custom value for that field and echo the session.
If it is a text inserted just "as is" then better delete it , insert code snippet and echo the session there.

502098 10/27/2023

Thanks cristi
It is a text inserted using html -> text from the designer so I used the code snippet and thats exactly what I wanted.
Thanks again