Forum Moderators: phranque
<!--#include virtual="variablename.html"-->
So if the value of my variable was "xyz" the file included would be "xyz.html".
Thanks in advance!
<!--#include virtual="${variablename}.html" -->
Ref: [httpd.apache.org...]
Jim
An (X)SSI tutorial:
[uic.edu ]
Not sure if I'm allowed to post this link, page about using one variable:
[ordersomewherechaos.com ]
<!--#include virtual="${variablename}.html" -->
I must have gone through 50 SSI tutorial sites without seeing this, but the UIC site above had it.
This is for a today in history type page. I will get the local date, and use the variable in the file name, like this:
<!--#config timefmt="%b-%d" -->
<!--#set var="today" value="date_local" -->
<!--#include virtual="today-in-history/$today.html" -->
Can't wait to try it. Thanks!