It’s good practice to give your website users the ability to choose between using the mobile version and the desktop version. In this tut we use PHP and jQuerymobile to accomplish this task. We will create a session and store the preference and use PHP to detect mobile browsers by their user agent.

Download source .zip



Get actionable training and tech advice

We'll email you our latest articles up to once per week.