If you are using PHP then you can use the session variable (I think thats what its called) $_SERVER['HTTP_USER_AGENT']. This will return a string with various values depending on the user agent of the client.
Now you just need to code what type of broswers your looking for and since its mobile broswers your after heres a list of user agents so far.
http://www.zytrax.com/tech/web/mobile_ids.htmlUse preg_match() to check and redirect as needed.
heres a sample of my code below. I think yours will have to be much longer to include all mobile browsers. That is if you want to check for all right?
CODE
$ua = $_SERVER['HTTP_USER_AGENT'];
$pattern = "/msie\s(5\.[5-9]|6\.[0-9])/i";
if(preg_match($pattern,$ua))
{
header("location: redirect.php");
}
edit: I'm not sure if preg_match can take arrays as the pattern, if it can then you can setup an array of all those broswer strings. easy

.
Update:***
Actually someone has already written some code for this.
http://detectmobilebrowsers.mobi/ I think this would be alot easier then trying to preg_match all on your own. GL
Comment/Reply (w/o sign-up)