Hi there,
I'm trying to create a website that is completely database driven (MSAccess) using VBScript. How can I pull the following text from a field in the database:
<!-- #include file="includes/header.asp" -->
and have it run through the server to generate the header using the include statement, versus just having the include statement print (basically make it work?)? Does this make sense??
I currently have a file called tblpages.asp that extracts all the information needed to build a page and this stores the information into variables - which I know doesn't work, but I can't wrap my head around how to make it work (i.e. my table includes txt_Title, txt_Keywords, , txt_Description, txt_Header, txt_Left, txt_Content, txt_Right, txt_Footer). Anything that is text only in my tables works, but anything that is an include statement doesn't.
Sample code of my default.asp page:
<!-- #include file="includes/tblpages.asp" --> (extract variables from database)
<html>
<head>
<title><%= txt_Title %></title>
<meta name=Keywords content="<%= txt_Keywords %>">
<meta name=Description content="<%= mem_Description %>">
<link rel="stylesheet" href="<%= txt_Stylesheet %>" type="text/css">
</head>
<body>
<table width="760" height="100%" border=0 cellspacing=3 cellpadding=3>
<tr valign="top">
<!-- Top Banner -->
<td colspan=2>
<% =txt_Header %>(this is the include statement which doesn't work)
</td>
</tr>
Thanks!
Paula 