Forum Moderators: open
i would like to use SSI to check browser and deliver the appropriate include.txt
i would like to check for MSIE 5 and 6 and give the rest something else:
<!--#if expr="${HTTP_USER_AGENT} = /MSIE 6/" -->
<!--#include file="ie.txt" -->
<!--#if expr="${HTTP_USER_AGENT} = /MSIE 5/" -->
<!--#include file="ie.txt" -->
<!--#else -->
<!--#include file="nn.txt" -->
<!--#endif -->
except this doesn't work. i know it has something to do with my syntax duplicating the #if expression for MSIE 6 and MSIE 5.
would much appreciate some help :)
many thanks
sorry, i don't understand.
i have tried
<!--#if expr="${HTTP_USER_AGENT} = /MSIE5 ¦ MSIE6/" -->
<!--#include file="ie.txt" -->
<!--#else -->
<!--#include file="nn.txt" -->
<!--#endif -->
but it doesn't work, it only recognises MSIE5.
..puzzled...
i only copied this out from somewhere else, i didn't write it myself :)
i have copied that out word for word, but doesn't work in my IE5.5 browser. i get the nn.txt.
i can only get it to work by using the /MSIE/ generic term. which in itself is not so bad, as even IE4 understands the ie.txt that i want to insert.
many thanks for your help anyway, i think i'm just being a dunce :)