![]() |
Help with misc.php, passing vars?
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. ;) |
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. |
Remember to clean your input variables before using them!
|
All times are GMT. The time now is 06:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|