Re: help with parse
| From: | Renze Munnik | Date: | Wed, 04 Apr 2001 08:08:43 +0000 |
| Subject: | Re: help with parse | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46996@lists.php.net to get a copy of this message | ||
WD wrote:
>
> heres what is result in IE...which shouldnt show up at
> this code isnt parsing like I expect..
>
> <?php
> if ($HTTP_USER_AGENT = "Mozilla")
> {
> print ("This site best viewed with IE 4 or
> better!\n");
> print ("<center>\n");
> print ("<a
> href='http://www.microsoft.com'>\n");
> print ("<img src='lgoIE.gif'></a>\n");
> print ("</center>\n");
> }
> ?>all...
>
> \n"); print ("\n"); print ("\n"); print ("
> \n"); } ?>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Have you ever checked the $HTTP_USER_AGENT value from IE?
IE says:
"Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)"
(for example)
So, you shouldn't be checking for Mozilla. IE says that to.
--
* R&zE:
***************************
** Renze Munnik
**
** E: renze@datalink.nl
** M: +31 6 218 111 43
***************************