ELIGHT sage This is a very complex subject so I will only cover the basics here
XtGem "get" variables can be used to replace any text or code in your site with a value that has been declared in a link or form
In your code or text a variable looks like this
{_$variable_name|default_value} Original XtBoard post
a simple form to display your name and age< br/><form id="myform" action="http://MY_SITE.COM#myform" method="get">Enter your name<br /><input type="text" name="myname" value="{_$myname|}" /><br />Enter your age<br /><input type="text" name="myage" value="{_$myage|}" /><br /><input type="submit" value="GO" /></form><br />your name is {_$myname|currently unknown } your age is {_$myage|also unknown}
<form id="myform" action="http://MY_SITE.COM#myform" method="get">Enter your name<br /><input type="text" name="myname" value="{_$myname|}" /><br />Enter your age<br /><input type="text" name="myage" value="{_$myage|}" /><br /><input type="submit" value="GO" /></form><br />your name is {_$myname|currently unknown } your age is {_$myage|also unknown}Copy code
..........,,,,The Form........
<form id="myform" action=" http://MY_SITE.COM#myform" method="get">This sets up the form and tells it where to go. (in this case back to itself)
You can also use method="post" so that the variables will not appear in the url box
[color=# 0ff]<input type="text" name="myname" value="{_$myname|}" />
<input type="text" name="myage" value="{_$myage|}" />[/color]input the values for name and age
The xt variables restores the last value of name and age after the form has been submitted.........
[color=# 0ff]<input type="submit" value="GO" /></form>[/color].........Submit the form and close it............The output of the form
your name is currently unknown
your age is also unknown
your name is [color=# 0ff]{_$myname|currently unknown }
your age is {_$myage|also unknown}The Xt variables alter the text that is output[/color]