shaunno2007 Posted July 21, 2008 Share Posted July 21, 2008 What will i need to do if i want to put something on my website that checked what browser the user is using and if there are using FF recommend them to use IE or if they are using IE recommend them to use FF. I would want it to echo out something saying "You are using FF we recommend you to use IE for this page!" How could i do this? thanks Shaun Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 21, 2008 Share Posted July 21, 2008 php processes Prehypertext meaning it can't detect the browser the end user is using. You shouldn't have to build to a browser since IE6 and FF2/3 both render w3 compliant to nearly the exact same. Quote Link to comment Share on other sites More sharing options...
shaunno2007 Posted July 22, 2008 Author Share Posted July 22, 2008 I have seen a way this can be done but a can not remember how or where i have seen it. Like when you go onto microsoft website using FF, to download something it says you are not using IE bla bla bla. how do you check to see what browser the user is using ??? Quote Link to comment Share on other sites More sharing options...
shaunno2007 Posted July 23, 2008 Author Share Posted July 23, 2008 php processes Prehypertext meaning it can't detect the browser the end user is using. You shouldn't have to build to a browser since IE6 and FF2/3 both render w3 compliant to nearly the exact same. -------------------------------------------------------------------------------- I have seen a way this can be done but a can not remember how or where i have seen it. Like when you go onto microsoft website using FF, to download something it says you are not using IE bla bla bla. how do you check to see what browser the user is using Quote Link to comment Share on other sites More sharing options...
corbin Posted July 23, 2008 Share Posted July 23, 2008 Nothing pisses me off more than sites built to a specific browser. It's not polite to ask users, who are giving you their time of day to check out your site, to use a different browser, thus wasting their time. (In my opinion anyway.) Quote Link to comment Share on other sites More sharing options...
tibberous Posted July 23, 2008 Share Posted July 23, 2008 You can check the browsers user agent with PHP, which is very accurate. The only time I would agree to doing this is if you didn't want to support something like IE, which makes you do things different from everyone else. Quote Link to comment Share on other sites More sharing options...
shaunno2007 Posted July 23, 2008 Author Share Posted July 23, 2008 Nothing pisses me off more than sites built to a specific browser. It's not polite to ask users, who are giving you their time of day to check out your site, to use a different browser, thus wasting their time. (In my opinion anyway.) Its not that i dont want people to view it in FF its because when people login to my website in FF the website goes wrong and i don't no how to fix it can you have a look and then you will no what i mean ok thanks Shaun www.link-search.x10hosting.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.