Hi all,
I have a simple drop-down Javascript menu, that I would like to display in IE, but replace with a static menu in NN.
I need to detect the browser using PHP. I am an ASP developer by nature, just getting into PHP, so please be quite elaborate with your answer as I'm new to this.
I used the following to take a look at the results.
<?
$browser = get_browser();
echo $browser;
?>
I understand that this may have issues with regard to proxy settings etc., but I have set the page not to cache and so far so good, it seems to be working, so that's not a problem either. I just need a way to look at the output from get_brower() and determine simply whether the browser is NN or IE, which clearly isn't as easy as I thought i.e. as in Javascript.
Any help please!?
Start Free Trial