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

Wei Zhu wrote:
> 
> 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
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to