# Conditional Statement in PHP

**URL:** <https://forum.kirupa.com/t/conditional-statement-in-php/233423>\
**Category:** Uncategorized\
**Created:** [July 23, 2007, 9:42pm UTC](https://forum.kirupa.com/t/conditional-statement-in-php/233423 "2007-07-23T21:42:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jp182](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jp182](https://forum.kirupa.com/u/jp182)\
**Post date:** [July 23, 2007, 9:42pm UTC](https://forum.kirupa.com/t/conditional-statement-in-php/233423/1 "2007-07-23T21:42:33Z")

</div>

Alright, So I’m trying to use PHP to look at the users browser and if they have IE6 or below it shows them one page and everything else is shown another.

I did an online search for the correct code but none of the browsers read the code properly:

```auto
<?php
	 
	 	if(browser_detection('browser') == 'ie6')
		{
            include 'ienavi.html';
			}
		else{
            include 'ffnavi.html';
			}
	?>

```
