Hi everybody. I was wondering if somebody could help me out. I don't know diddly squat about php except for echo and print and to always put a \ before a quote. I'm working on a page that absolutely needs absolute positioning (css) but I've learned that some browsers just screw it up so bad that I need a completely separate code to use for those browsers. What I'm looking for is the php code (or other language) that will determine the browser type and version and print different output depending on what it is. I've searched thru hundreds of old posts but either they're not quite what I need or there's 20 different ways to do it (javascript, browser.ini, get browser, etc) so I don't know which way to go.
What I need (in english) is:
If browser equals MSIE 5 or higher or NS6 or higher then "print this code"
// that's for the browsers that can handle my preferred code, without lising each individual version released
everything Else "print alternate safe code"
// this is for lower versions or NS and IE that can't handle my preferred code including all alternate browsers (opera, etc) because I'm just don't want to make it that complicated.
Like I said, I don't really know what I'm doing but I'd really appreciate it if somebody could help me out with the little snippet of code that will help me accomplish this task.
Thanks!!!!