Is it possible to use variables to set an include page? For instance, if an alpha character passed through the URL is used to build a filename so that any one of several pages could be included in one basic header page, is there a way to use this variable in the include function? So far, I'm having no luck making it work. Here's a sample of the code I have so far:
<script language="VBScript">
dim strAlpha
dim strFileName
dim strHTML
With document.location
strAlpha = mid(.search,8,1)
strFileName = "Data/tbAuthors_" & strAlpha & ".htm"
strHTML = "<!--webbot bot=" & chr(34) "Include" & chr(34) & " U-Include=" & chr(34) & strFileName & chr(34) & " TAG=" & chr(34) & "BODY" & chr(34) & " -->"
document.write strHTML
end with
</SCRIPT>
<script language="VBScript">
dim strAlpha
dim strFileName
dim strHTML
With document.location
strAlpha = mid(.search,8,1)
strFileName = "Data/tbAuthors_" & strAlpha & ".htm"
strHTML = "<!--webbot bot=" & chr(34) "Include" & chr(34) & " U-Include=" & chr(34) & strFileName & chr(34) & " TAG=" & chr(34) & "BODY" & chr(34) & " -->"
document.write strHTML
end with
</SCRIPT>