Hey, I made a simple browser detection script that will redirect according to the type of browser.
The only thing is, I'm stuck on how I will get the page to continue loading instead of redirecting if you are using the correct browser.
Keep in mind that this code will be in the correct page (index.php), so when someone using the right browser shows up, I dont want them to redirect.
Here is my code:
<?php
if ($name = strstr ($HTTP_USER_AGENT, "Firefox"))
{
Header ("Location: http://www.site.com/index.php"); //correct browser page
}
else
{
Header ("Location: http://www.phpbuilder.com/"); //incorrect browser page
}
?>
Any suggestions/ideas?
Thanks!