PHP if statement?
<p>Hi i wonder what i might be doing wrong. I have two conditions that returns true or false.For same reason it doesnt work. I would appreciate if someone point out what i might be doing wrong.</p>

<pre><code>&lt;?php  
  $pagetype = strpos($currentPage, 'retail');
  if(isset($quoterequest) &amp;&amp; $pagetype === True &amp;&amp; $currentPage !== 'index.php'){
    echo "this is retail" ;
  }elseif(isset($quoterequest) &amp;&amp; $pagetype === False &amp;&amp; $currentPage !== 'index.php'){
    echo "this is restaurant";
  }                               
?&gt;
</code></pre>

<p>EDIT- Sorry i edit it but didnt show up for some reason. Basically script looks into urls for term "retail" if it finds it, it should return "this is retail" if not "this is restaurant"</p>

<p>quoterequest is a just a variable like so </p>

<pre><code>$quoterequest = "washington"
</code></pre>

<p>and the currentpage is driven from</p>

<pre><code>&lt;?php $currentPage = basename($_SERVER['SCRIPT_NAME']);
</code></pre>

<p>Just to be clear. Url is structure like so</p>

<p>www.example.com/retail-store.php
www.example.com/store.php</p>
