Dynamic Includes

Added By: bindingvoid

(3 of 5) by 8.
Rate Snippet:
Description:  Dynamically includes whichever inc file you specify in the url with the variable 'file' ie: test.asp?file=monkeys will include monkeys.inc (if it exists). note: Originally posted as "Dynamically include text files". Modified to use inc files cos it makes more sense. Much of the credit goes to Webthing's 'display text file' code (here: http://www.brinkster.com/CodeBank/ShowSnippet.aspx?n191 ) - i just added a few things to make it dynamic.
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: