Okey, im a newbie when it comes to PHP, most of the time I hire people to do it for me, <?php if (strstr($_SERVER["HTTP_USER_AGENT"], "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DimensionBrowserV2.A; .NET CLR 1.1.4322)")) { ?> <?php } else { ?> You are not up-to-date, please make sure you update now!</strong><br> Download: <a href="DimensionBrowser.exe">HERE</a> (EXE)<br> Download: <a href="DimensionBrowser.zip">HERE</a> (ZIP) <br> Download: <a href="DimensionBrowser.rar">HERE</a> (RAR)</span> <?php } ?> PHP: That checks if the user is using the latest dimension browser version, but I need to add to ifs like <?php if (strstr($_SERVER["HTTP_USER_AGENT"], "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DimensionBrowserV2.A; .NET CLR 1.1.4322)")) { if (strstr($_SERVER["HTTP_USER_AGENT"], "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; DimensionBrowserV2.A; .NET CLR 1.1.4322 Alexa Toolbar)")) { ?> <?php } else { ?> You are not up-to-date, please make sure you update now!</strong><br> Download: <a href="DimensionBrowser.exe">HERE</a> (EXE)<br> Download: <a href="DimensionBrowser.zip">HERE</a> (ZIP) <br> Download: <a href="DimensionBrowser.rar">HERE</a> (RAR)</span> <?php } ?> PHP:
You can use a logical 'or' in your if() statement. (Two pipe symbols are a way of writing OR) if($this == true || $that == true){ do something; } Code (markup): Alternatively you can use an elseif: if(){ do something; } elseif(){ do this instead; } else{ do this; } Code (markup): It does appear, however, there is a simpler way to solve your problem. You only wish to check if a user is using "DimensionBrowserV2.A", yes? If so, you can use the quicker strpos() (http://uk.php.net/manual/en/function.strpos.php) function: <?php if (strpos($_SERVER["HTTP_USER_AGENT"], "DimensionBrowserV2.A") === false) { ?> You are not up-to-date, please make sure you update now!</strong><br> Download: <a href="DimensionBrowser.exe">HERE</a> (EXE)<br> Download: <a href="DimensionBrowser.zip">HERE</a> (ZIP) <br> Download: <a href="DimensionBrowser.rar">HERE</a> (RAR)</span> <?php } ?> Code (markup): As the user-agent string can vary quite wildly, this will handle users on other operating systems (Win 2k for example) and with other browser features .