Possible Duplicate:
Simplest way to detect a mobile device
I'm not sure if it's as simple as it sounds, but I'd like to get the following:
Currently I have a form that takes an input of a start address, and then directs the user to Google Maps using driving directions to a defined end address (it works fine).
What I'd like to do is insert a really simple lightweight 'if' statement basically saying 'If the device is a mobile device, show a text link to another page. If it's anything else, show the form'.
Is this as simple as it sounds?