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
XTMEDIA
Aash you try to edit <form name="cat" action="$list" method="get" />
Graham
Aash Don't use xtscript just use the "get" variable from the form
<xt:include file="{_$list|}" />
Aash
Graham Thanks, i'll give it a try now!