Results 1 to 3 of 3
Thread: Detecting Browser in PHP
Nov 27, 2000, 10:04 #1
- Join Date
- Aug 1999
- Pittsburgh, PA, USA
- 0 Post(s)
- 0 Thread(s)
I'm using the $HTTP_USER_AGENT variable on my page to detect the user's browser. It returns something like this:
Mozilla/4.0 (compatible; MSIE 4.01; Windows 98; Compaq)
I'm trying to use a simple if statement to display a block of code if the user is using Netscape, and another if the user is using IE - however given the complex nature of that block of text in bold, I'm not sure where to go from here.
All help is appreciated.