PcGeniusProductions Posted September 8, 2008 Share Posted September 8, 2008 Hi, is there a php code to display one thing to IE and another to everything else? I am a real beginner in php so i require as much help as possible. Thank you for any help offered. ) Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/ Share on other sites More sharing options...
Mchl Posted September 8, 2008 Share Posted September 8, 2008 http://www.php.net/manual/en/function.get-browser.php Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-636995 Share on other sites More sharing options...
GingerRobot Posted September 8, 2008 Share Posted September 8, 2008 Well, it depends what you're trying to do. If its a CSS issue, then conditional comments are probably the way forward. Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-636997 Share on other sites More sharing options...
PcGeniusProductions Posted September 8, 2008 Author Share Posted September 8, 2008 let me explain... I have made (with 75% help from friends) a working shoutbox, but it does not work in IE. I wanted to give access to the shoutbox for all of other users, but not for IE users (who would otherwise see gobledegook) i want to display a message to them. Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637002 Share on other sites More sharing options...
DarkWater Posted September 8, 2008 Share Posted September 8, 2008 How about you just code it to work in IE and don't sidestep the underlying issue? Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637017 Share on other sites More sharing options...
Adam Posted September 8, 2008 Share Posted September 8, 2008 why doesn't it work in IE ? Sounds like a HTML/CSS issue in which case PHP isn't really the answer... try fixing the error? reckon the users would appreciate that more being as IE is a widely used browser... Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637018 Share on other sites More sharing options...
PcGeniusProductions Posted September 8, 2008 Author Share Posted September 8, 2008 Hmm, I could do... But like I said, I am a rookie. It took me weeks to perfect the chatbox, and I reli dnt want to go messin it up. Seriously tho guys, you are right. I should not run from the problems, otherwise, how will I learn? Only problems is, I did the styling part, (i am very good with css) but my friend did the php and sql part (of which I know none) i asked him why it does it, and he says he dnt know. it looks reli nice in firefox, but not in ie, well, in IE it dnt even look like a chatbox, just a load of coding. Thanks for your replies tho guys, I will have a go. I need to learn php Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637023 Share on other sites More sharing options...
DarkWater Posted September 8, 2008 Share Posted September 8, 2008 PHP is pretty easy to get a grip on if you really take your time and learn good practices and stuff. Search some of the topics here, as they often have really good advice if you're stuck on a problem. Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637026 Share on other sites More sharing options...
Adam Posted September 8, 2008 Share Posted September 8, 2008 Do you have a link? perhaps its a really simple silly error? Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637033 Share on other sites More sharing options...
PcGeniusProductions Posted September 9, 2008 Author Share Posted September 9, 2008 Hey guys, I fixed it. PHP is a tad like ASP Well, I would not call it a fix, but it now works ok. Only problem is, it is the CSS that is playing up now. I know how to fix this of course. What I don't understand, is why should all of the web-designers make IE compliant coding when it is IE in the wrong? if you ask me MS are a tad inconsiderate. They put their rubbish out and expect Us to adapt. Anyway, thnks for your replies guys, and good luck with your own projects Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637899 Share on other sites More sharing options...
BlueSkyIS Posted September 9, 2008 Share Posted September 9, 2008 correction: ASP is a tad like PHP. Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637903 Share on other sites More sharing options...
PcGeniusProductions Posted September 9, 2008 Author Share Posted September 9, 2008 Heehee, thanks I guess PHP is older. Quote Link to comment https://forums.phpfreaks.com/topic/123333-browser-detection/#findComment-637906 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.