PDA

View Full Version : Change server side include based on day of week


zenweezil
04-24-2003, 03:11 AM
I am trying to have a .shtml page where one section of the page will be a server side include of another .shtml such as <!--#include virtual="includedstuff.shtml">

THis works fine, but now I want to rotate what the include will be based on the day of the week.

I tried a cgi to determine the day of the week but when it plugs in the appropriate <!--include... line it remains as a coded out note instead of actually pulling in the file.

I also tried using a javascript to determine the day of the week but the <!-- part screws up the javascript.

Any thoughts on how to pull this off?

YUPAPA
04-25-2003, 12:38 AM
You can code the page in perl and then you can determine the day of the week... :)

brothercake
04-25-2003, 01:25 AM
Crossposted here http://www.codingforums.com/showthread.php?s=&postid=94638