/    Sign up×
Community /Pin to ProfileBookmark

i was on the ea sports site and if you go on to if with a old broswer it sends you to a page were they tell you to upgrade,

how do you do that

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@pyroDec 18.2003 — The best way would be to use CSS, probably. Give a <div> and ID, and insert your message into it. Then, use the [URL=http://www.w3.org/TR/REC-CSS2/cascade.html#at-import]@imput[/URL] rule to include a bit of CSS that will hide the div (display: none?. Old browser will not read the imported stylesheets, but newer one's will (thus hiding the message).
Copy linkTweet thisAlerts:
@AdamGundryDec 20.2003 — On the server-side, you could use PHP's get_browser() function to determine whether your browser is capable of handling the content:

http://www.php.net/manual/en/function.get-browser.php

Adam
×

Success!

Help @chris9902 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.16,
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,
)...