Login
·
Signup
Home
»
XtGem
»
Coding help
»
Form using xtscript
» View post
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>
in html You can get the values like this
{_$my_var|default value} {_$my_other_var|default value}
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-->
xtscript
is
server based
#
2016-12-08 23:34 (edited 2016-12-08 23:37 by
Graham
) ·
(0)
Home
»
XtGem
»
Coding help
»
Form using xtscript
» View post
Online: Guests: 1
Log in