Ive seached google but is there a PHP script to do different pages for different web browsers?
Ive seached google but is there a PHP script to do different pages for different web browsers?
i found a javascript one on google but forgot the url to it soz![]()
You could have something like:
(I haven't tested it).HTML Code:<script type="text/JavaScript"> <!--Begin if(navigator.appName == 'Netscape') { document.getElementById('eg').innerHTML = 'Hey Netscape user!'; } else if(navigator.appName == 'Microsoft Internet Explorer') { document.getElementById('eg').innerHTML = 'Hey internet explorer user!'; } else{ document.getElementById('eg').innerHTML = 'Hey user!'; } //Add more browsers //--> </script>
Quite easy to do yourself "/
U may want to check what some browsers idenetife as thogh, as i was to lazy to look it upPHP Code:<?php
$browser = get_browser('browser');
if ($browser = "Firefox"){
header("Location: firefoxpage.php");}
elseif ($browser = "Opera"){
header("Location: OperaPage.php");}
else{
header("Location: IEpage.php");}
?>
EDIT: forgot a { :eusa_whis
Last edited by Mentor; 05-04-2006 at 06:21 PM.
thanks Mentor
Sorry for double posting BUT WHO THE HELL BAD REPPED ME and said dont ask stupid questions when you can google it when I said that i didnt find anything on google?
Lol. Anyway sorry for bumping a old post we can let it go back to its hiding place now
Want to hide these adverts? Register an account for free!