Jump to content

Archived

This topic is now archived and is closed to further replies.

Nothadoth

Can someone do this for me? Check for browser.

Recommended Posts

For some reason and I dont know why it messes my site up in firefox browsers. So i would like a script to check if the user is using Firefox to warn them. Can this be done?

Thank you.

Share this post


Link to post
Share on other sites
hi

i would check you html a good plugin for firefox is called IE Tab within firefox you have a new tab in the tool bar click this and switch between ie and firefox

very usefull exstension to have for development

Hope this helps

Share this post


Link to post
Share on other sites
Please post a URL (or code) so we can see what you mean. You should be able to make a site appear almost identical between IE & FF. This can be tricky if you use CSS, but it can be done.

Ken

Share this post


Link to post
Share on other sites
This should work nicely:

[code]
<?php
if(preg_match('/firefox/i',((isset($_SERVER['HTTP_USER_AGENT']))?($_SERVER['HTTP_USER_AGENT']):(''))))
{
        //Firefox only code
}
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.