Forum Moderators: coopster
<?
$ie=false;
$ie += substr_count($HTTP_USER_AGENT,"MSIE");
if($ie) {
echo "<LINK REL=StyleSheet HREF=\"ie.css\" TYPE=\"text/css\">";
}
else {
echo "<LINK REL=StyleSheet HREF=\"ff.css\" TYPE=\"text/css\">";
}
?>
Now it seems to load the ie.css if it detects the browser as Internet Explorer, but it fails to load up the ff.css if the browser ISNT Internet explorer. Am i doing something wrong here? Thanks!