@felgallFeb 20.2008 — #Just remember that useragent is a free format field and in at least some browsers (eg. Internet Explorer, Firefox) can be set by the browser owner to contain anything at all. Other browsers (eg. Opera) change the useragent that they pass depending on the site being visited and so report themselves as whichever browser that the site works best with.
The useragent field is therefore not suitable for any sort of processing and should only be used for stats purposes where it will give approximate results.
@NogDogSep 03.2008 — #what would you suggest?[/QUOTE] It depends on why you need to know the user's browser. If it's simply issues with making IE display correctly, you'll probably be better served by using IE conditional comments in your [X]HTML output to override the base CSS style settings to get the necessary tweaking.
@felgallSep 04.2008 — #Most IE6 display issues can be fixed by making a minor change to the way you have the style coded so that the style works for IE6 and other browsers. Only in very rare cases do you need a separate style to override for IE6. Most of the IE6 bugs are well documented as to what causes the problems in the layout and what you need to do to fix it. The main problems generally relate to haslayout, the 3 pixel bug or the duplicate character bug none of which need conditional styling.