We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
 
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Web Design Help


It's free to register, to post a question or to start / join a discussion


 

Mobile phone browser redirect script


HighTower

Likes # 0

Anyone know of one that works well? A simple detect and redirect to a specified page if the user is on a mobile phone browser is all I require.

Thanks.

Like this post
Kemistri

Likes # 0

If you need to redirect the user (presumably because your layout cannot simply be shrunk down to fit a tiny screen) then you can write (or download an off-the-shelf) PHP user agent detection script. click here for one example that is supposed to be pretty up to scratch. If you don't need the redirect, use media type statements in your style sheet links. Please keep in mind the fact that user agent reporting is flexible and therefore its detection can be patchy. For that reason, I avoid it.

Like this post
HighTower

Likes # 0

I'll give it a go, thanks very much for the link.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Amazon 3D smartphone release date, price and spec: The hologram phone?

IDG UK Sites

You're never alone with a clone: How the App Store got taken over by copycats

IDG UK Sites

PCs vs consoles: PCs still pwn when it comes to gaming (and everything else)

IDG UK Sites

The art of rebranding: Creative agency The Neighbourhood explains how & why it rebranded