* Yudhi-Max How to making a simple form using xtscript code to get value from input text and print the output/result? Please give me a sample, thanks
2016-12-08 23:46 · (0)
* Mwebvendor * Yudhi-Max Xtscript is not a server-side scripting like php. It is like a javascript
2016-12-09 05:48 · (0)
* Graham * Yudhi-Max simple form
<form action="">
<input type="text" name="my_var" value="" />
<input type="text" name="my_other_var" value="" />
<input type="submit" value="Go" />
</form>

Copy code

in html You can get the values like this
{_$my_var|default value}
{_$my_other_var|default value}

Copy code

The "get" function in xtscript gets the value of variables set in forms or the query string
<!--parser:xtscript-->
get my_var
get_or_default my_other_var;my default value
print $my_var
print $my_other_var
<!--/parser:xtscript-->

Copy code

xtscript is server based
2016-12-09 08:34 (edited 2016-12-09 08:37 by Graham ) · (0)
* Yudhi-Max * Graham Thank you so much Mr.Graham, the explanation from you has very helped to me
2016-12-09 09:03 · (0)
* Yudhi-Max * Graham one question again Sir, i want print value of 'my_var' to output in base64_encode format, how to do it?
2016-12-09 09:22 · (0)
* Yudhi-Max it's solved, i just to learn more from your website Mr.Graham at: http://syntax.xtgem.com/manual/basics/functions/

here my page demo: http://virtu.hexat.com/00/test/b64+enc
2016-12-09 10:00 · (0)
* Thor * Yudhi-Max http://syntax.xtgem.com/manual/basics/functions/default?func=base64_encode
2016-12-09 10:05 · (0)

Online: Guests: 1