How do I get the users browser and store it in a variable, at the moment I use the HTTP_USER_AGENT command, but that outputs:
and I just want to know the browser, is there anyway to get the browser out of the user agent string? because ife put a little script, when someone visits my sites index page it adds them to a database, but I want it to add the browser, not the whole user_agent string, is there anyway I can do this?
Code:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
and I just want to know the browser, is there anyway to get the browser out of the user agent string? because ife put a little script, when someone visits my sites index page it adds them to a database, but I want it to add the browser, not the whole user_agent string, is there anyway I can do this?






