Re: Browser detection

2000-08-22 Thread Andrew Wansink
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

2000-08-21 Thread Wei Zhu
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 ---