Possible Duplicate:
Standard way to detect mobile browsers in a web application based on the http request
I have 3 mobile versions of a website and would like to present each to different handset models according to what they support. One version is monochromatic WML, another is color WML and another is XHTML for mobile.
What's the best way to identify the device in the request and know if it supports a version or another?