Problem is, I want to read the users browser, and activate a PHP script if it isnt internet explorer.
Code: Select all
<html>
<head>
<LINK REL="stylesheet" HREF="style.css" TYPE="text/css">
</head>
<body bgcolor="#000000">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var navName = navigator.appName;
if(navName == "Microsoft Internet Explorer")
{
var bro = "yes";
}
// End -->
</script>
<?PHP
$bro = <script language="javascript">document.write(bro);</script>;
if($bro == "yes")
{
echo "It works!";
}
else
{
echo "It doesn't...";
}
?>
</body>
</html>so does anyone have ideas on how to do this?
It'd be even nicer if someone wants to host this for me
it's gonna be two small files (subprofile.php and style.css) that probably wont use next to any bandwidth