mattster
10-06-2006, 06:59 AM
I would like to do something like the following, so that i can get the date from the query string and then insert the include file that is named by date, for example 061003.inc (yymmdd.inc), but of course the following does not work:
<% Dim newsPage
newsPage= request.querystring("np")
if newsPage="" or isnull(newsPage) then
newsPage= 0
end if
%>
<!--#include file="includes/news/<%= newsPage %>.inc"-->
I have been trying to figure out how to use "getFileContents" but with no success.
Could someone please help me?
Thanks in advance!
<% Dim newsPage
newsPage= request.querystring("np")
if newsPage="" or isnull(newsPage) then
newsPage= 0
end if
%>
<!--#include file="includes/news/<%= newsPage %>.inc"-->
I have been trying to figure out how to use "getFileContents" but with no success.
Could someone please help me?
Thanks in advance!