PHP elseif statement
<p>I am using PHP browser detect and want to use an else if statement to redirect them to a different page dependant on the browser or include a certain file.. For now I am sampling redirect.</p>

<p>I am getting a syntax error and I am baffled why, here is the code:</p>

<pre><code>if($browser['name'] . $browser['version'] == "firefox" . "13.0.1"){
    header("Location: newff.php");
  elseif($browser['name'] . $browser['version'] != "firefox" . "13.0.1"){
    header("Location: oldff.php");
  } elseif($browser['name'] . $browser['version'] == "msie" . "13.0.1") {
    header("Location: newie.php");
  } elseif($browser['name'] . $browser['version'] != "msie" . "13.0.1") {
    header("Location: oldie.php");
  } elseif($browser['name'] . $browser['version'] == "chrome" . "20.0.1132.47"){
    header("Location: newchrome.php");
  } elseif($browser['name'] . $browser['version'] != "chrome" . "20.0.1132.47"){
    header("Location: oldchrome.php");
  } elseif($browser['name'] . $browser['version'] == "safari" . "534.57.2"){
    header("Location: newsafari.php");
  } elseif($browser['name'] . $browser['version'] != "safari" . "534.57.2") {
    header("Location: oldsafari.php");
  } else {
    header("Location: other.php");
  }
</code></pre>

<p>Thanks</p>

<p>Ben</p>
