Log in

View Full Version : Help with misc.php, passing vars?


DarkWolf74
05-09-2007, 02:41 PM
Ok, so here is my Q..

I want to do /misc.php?template=Blah&var1=this&var2=that and to be able to use the var1/var2 info inside the template. Is there a way to do it because I have yet to be able to pinpoint how.


Now for the more complex question linked to the var1 var2 above..

Is there a way to include a file into the template based on the above vars, such as...

<?php include '/some/dir/[var1].txt'; ?>

I'd like an answer to either of the above, both if possible. ;)

WetWired
05-09-2007, 03:24 PM
Use $_REQUEST[var1] and $_REQUEST[var2]

No, you cannot include external files in templates. You must write a mod in order to use external files.

Dismounted
05-10-2007, 10:07 AM
Remember to clean your input variables before using them!