Redirect script webbrowser from wap to web and wapbrowser from web to wap.

PHP Code:
$htmlredirect "http://kralj.frih.net";$wmlredirect "http://kralj.r8.org";
if(
strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.WML") > 0){header("Location: ".$wmlredirect);}
else{
header("Location: ".$htmlredirect);
exit;}
?>