|
Posted by Miguel Cruz on 08/03/06 17:52
"Anders" <andersjensen.mail@gmail.com> wrote:
> Hi. Is it possible to make a php script that will redirect a guest to a
> website, depending on which browser he uses??
>
> I mean, IE doesn't keep the webstandards, so you could make a page for
> IE users and one for Firefox users. If the user uses IE, when clicking
> a link he will be redirected to that page and same thing with
> Firefox...?
Sure, just check $_SERVER['HTTP_USER_AGENT'] and then decide where to
send them with header("Location: wherever");
miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Navigation:
[Reply to this message]
|