A php include will still work, but you need to understand that it will be output in the html for every browser, but only shown to the user for ie. It sounds like you've already got it doing what you want.
here's an example:
display_for_ie.php:
Code:
echo "Hello ie user. You really ought to get with the times";
index.php:
Code:
echo "Welcome to my website. There's lots of good stuff here.<br><br>
<!--[if IE]>";
include "display_for_ie.php";//this calls the include file that outputs the message that's intended for IE only users
echo "<![endif]-->
<br>
Have a nice day.";
The HTML that is output from PHP will look like this:
Code:
Welcome to my website. There's lots of good stuff here.<br><br>
<!--[if IE]>
Hello ie user. You really ought to get with the times
<![endif]-->
<br>
Have a nice day.
Most browsers, ignoring the conditionals, will output this to the user:
Code:
Welcome to my website. There's lots of good stuff here.
Have a nice day.
IE will interpret and display the content within the conditionals:
Code:
Welcome to my website. There's lots of good stuff here.
Hello ie user. You really ought to get with the times
Have a nice day.
Bookmarks