* Aash I am trying to get a variable through user selection and to include the file assigned to that variable.

<form name="cat" action="" method="get" />
<select name="list">
<option value="val">SOME VALUE</option>
<option value="val2">SOME VALUE2</option>
</select>
<input type="submit" />
</form>
<!--parser:xtscript-->
get list
print <xt:include file="$list" />
<!--/parser:xtscript-->

Copy code


* The file is not getting included
2015-02-04 13:50 (edited 2015-02-04 13:57 by Aash ) · (0)
* XTMEDIA * Aash you try to edit <form name="cat" action="$list" method="get" />
2015-02-04 15:26 · (1)
* Graham * Aash Don't use xtscript just use the "get" variable from the form
<xt:include file="{_$list|}" />
2015-02-04 15:29 · (0)
* Aash * Graham Thanks, i'll give it a try now!
2015-02-04 17:02 · (0)

Online: Guests: 1