How to use a global/local variables in hotspot servlet pages

Hi. Is there any way, how tu use global or local variables created by script in mikrotik in hotspot html servlet pages.

I need to create different content of login.html related to global variable. I am using a redirection to the external hotspot page in the internet, but if there is no link up to the internet I need to show a sorry message in login.html file instead to do redirection. Any ideas? Thanks

Hi,
is an old post but … is there anyone that knows it ? I need one variable on hotspot tan can define the HTML login page

Thank’s.
Oscar.