title: PHP If/Else statement not working
body: <p>I have a simple search bar.</p>
  
  <p>I want it to show on every page except the contact page.</p>
  
  <p>Here is the code</p>
  
  <pre><code>function sidepanel()
  {
  
       if ($this-&gt;request=='contact') { 
  
      $this-&gt;output('&lt;div class="qa-sidepanel"&gt;');
      $this-&gt;output('&lt;/div&gt;');
  
      } else
         $this-&gt;output('&lt;div class="qa-sidepanel"&gt;');
         $this-&gt;search();
      $this-&gt;output('&lt;/div&gt;');
  }
  </code></pre>
  
  <p>On every page, it shows the search bar as it should..</p>
  
  <p>However, when I go to the contact page, it shows a very messed up search bar.. but a search bar nonetheless.. Why is that? It shouldn't show one at all.</p>