// test for wap browser
$ext=substr($REQUEST_URI,-3,3);
$browser=substr(trim($HTTP_USER_AGENT),0,4);
if( $ext=="wml" ||
$browser=="Noki" ||
$browser=="Eric" ||
$browser=="R380" ||
$browser=="UP.B" ||
$browser=="WinW" ||
$browser=="Wapa") {
header("Content-type: text/vnd.wap.wml");
// your wml code goes here
}
else {
// your html code goes here
}
what is the complet code for this.