zenweezil
04-25-2003, 01:27 AM
I see the coding for conditional ssi but when I try the code I get errors saying the tags are unknown. What am I missing here?
Here is what code I used:
<!--#config timefmt="%A"-->
<!--#if expr="$DATE_LOCAL = /Monday/" -->
<p>I hate mondays!</p>
<!--#elif expr="$DATE_LOCAL = /Friday/" -->
<p>Yeeah, it's Friday!</p>
<!--#else -->
<p>No comment!</p>
<!--#endif -->
This was the resulting page in a browser:
SSI error: Unknown tag 'if expr="$DATE_LOCAL = /Monday/" '
I hate mondays!
SSI error: Unknown tag 'elif expr="$DATE_LOCAL = /Friday/" '
Yeeah, it's Friday!
SSI error: Unknown tag 'else '
No comment!
SSI error: Unknown tag 'endif '
Here is what code I used:
<!--#config timefmt="%A"-->
<!--#if expr="$DATE_LOCAL = /Monday/" -->
<p>I hate mondays!</p>
<!--#elif expr="$DATE_LOCAL = /Friday/" -->
<p>Yeeah, it's Friday!</p>
<!--#else -->
<p>No comment!</p>
<!--#endif -->
This was the resulting page in a browser:
SSI error: Unknown tag 'if expr="$DATE_LOCAL = /Monday/" '
I hate mondays!
SSI error: Unknown tag 'elif expr="$DATE_LOCAL = /Friday/" '
Yeeah, it's Friday!
SSI error: Unknown tag 'else '
No comment!
SSI error: Unknown tag 'endif '