Jump to content

Get User Browser for if statement


denoteone

Recommended Posts

PHP will prob be the most reliable method as not everyone has javascript enabled...

 

You could do something like this.. Havent tested this as I refuse to run anything on a PC... Sorry!

<?php 
$useragent = $_SERVER['HTTP_USER_AGENT'];
$ie6 = "MSIE 6.";
$is_ie6 = strpos($useragent,$ie6);

if($is_ie6 == 'true'){

echo "Ooops, your feel into a time machine and are running IE6!";

}

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.