/    Sign up×
Community /Pin to ProfileBookmark

Hi Guys

i want to detect ie6 send to another page then if the user wants to proceed in ie6, pass a query string back, pick it up then continue browsing the site in ie6

i have tried a few things i just can’t get the ie6ok bit to work

<?php

if(($_SERVER[‘HTTP_USER_AGENT’] == “MSIE 6.0”)
//detect ie6

&& (isset($_GET[“ie6ok”]))
//check if query string exists

&& ($_GET[“ie6ok”!=”yes”])) {
//match it

header( ‘Location: ie6.php’ ) ;
}

?>

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogFeb 01.2011 — The user agent string will likely contain a bunch of other stuff, too, so you need to use something like stripos() to look for specific text within that longer string.
×

Success!

Help @dowd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...