Don't ask me why, but I want to check what browser the user has and then redirect them to two diffrent sites. I have made some code in PHP to find out what browser they have, but I am only getting parse errrors when I try to redirect them....anyone want to help? I have tryed to use meta(refresh) and header(location) but I can't get it to work. Anyone care to help a n00b....please...


If anyone could just show me the way I would be really greatfull....


here is a sample code of what I am trying to do....


PHP Code:

    <?php
        
#Browsertype.php

        
$match strpos($HTTP_USER_AGENT"MSIE");

        echo 
"$HTTP_USER_AGENT";
    
        if (
$match 0) {
            
//redirect please...
            
exit;
        }else {
            
//redirect please...

            
exit;
        }
    
?>