Re: Browser detection
It is stored in the environment variable for the user agent. [- $browser = $ENV{HTTP_USER_AGENT}; -] [$ if ($browser =~ /MSIE/) $] [- Execute (ieheader.htm) -] [$ elsif ($browser =~ /Mozilla/) $] [- Execute (nsheader.htm) -] [$ else $] [$ endif $] hope this helps andy
Browser detection
Hi, How can I do the following in Embperl: -- if browser.appName is IE then Execute (ieheader.htm) elseif browser.appName is netscape then Execute (nsheader.htm) else end if -- Thanks, Wei ---
