> On 29 Jan, Jamie Tomlinson wrote:
> > I did, basically, that with IE and Netscape... more options could be
> > added for lynx.
> >
> > <?
> >    if (ereg( "MSIE", $HTTP_USER_AGENT ) )
> >   {  echo  ?> <(microsoft)>  <? ; }
> >   else  {  echo  ?>  <(netscape)>  <? ;}
> > ?>

There's a danger in doing it that way.  It can easily break when the browser
is running on Linux, because USER_AGENT can be set to an arbitrary value (if
I remember correctly).  The safest is probably to hard-code the most obvious
ones, then default to asking the user what their browser can do when it
falls through (to make sure you don't hand a simplistic version of the site
to someone with a powerful browser).

-Pat



--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to