* Graham * hadisofian There are 3 options you either have to pass the variable to the new page in the query string of all your links
ie <a href="/page?name={_$name|}">link</a>
or as a "hidden" input in a form
<form action="/page">
<input type="hidden" name="name" value="{_$name|}" />
<input type="submit" value="GO" />
</form>

Copy code

or use a cookie to hold the value and read it on the new page
simple cookie example
set the cookie
<!--parser:xtscript--> 
get name
if $name
call cookie::set $name=name; $val=$name; $expire=999999;$force_current=1
endif
<!--/parser:xtscript--> 
<form action="" method="post" >
  <input name="name" />
  <input type="submit" />
</form>

Copy code

And the retrieve the cookie on your other page
<!--parser:xtscript--> 
var $name=call cookie::get $name=name;$default=visitor
<!--/parser:xtscript-->

Copy code

and use the special $$ xtscript variable
{_$$name|}
2015-03-23 17:09 (edited 2015-03-23 19:04 by Graham ) · (0)

Online: Guests: 1