|
Ooble: Nice, but overly complex. :p Here is an easy way to find out if the user is using IE with regular expressions:
[php]<?php
if (preg_match("/MSIE/", $_SERVER['HTTP_USER_AGENT'])) {
// do whatever you need to
}
?>[/php]
I use that to fix IE's CSS rendering issues with my website. Like, how IE requires negative margins for certain alignments. It's pretty sick... so PHP is the only way to go when fixing the bullshit IE throws onto the screen. :/
|