title: I am not able to post form on same page
body: <p>Here are the codes.</p>
  <p><strong>Form</strong></p>
  <pre><code>&lt;form method=&quot;POST&quot; action=&quot;&quot; id=&quot;search&quot;&gt;
  &lt;div class=&quot;col-lg-4 center&quot;&gt;&lt;a class=&quot;btn btn-success&quot; type=&quot;submit&quot; name=&quot;publish&quot; id=&quot;publish&quot; alt=&quot;Publish&quot;&gt; Publish&lt;/a&gt;&lt;/div&gt;
  &lt;div class=&quot;col-lg-4 center&quot;&gt;&lt;a class=&quot;btn btn-success&quot; type=&quot;submit&quot; name=&quot;edit&quot; id=&quot;edit&quot; alt=&quot;Edit&quot;&gt; Edit &lt;/a&gt;&lt;/div&gt;
  &lt;div class=&quot;col-lg-4 center&quot;&gt;&lt;a class=&quot;btn btn-success&quot; type=&quot;submit&quot; name=&quot;draft&quot; id=&quot;draft&quot; alt=&quot;Save as Draft&quot;&gt; Save as Draft&lt;/a&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p><strong>Post</strong></p>
  <pre><code>&lt;?php
      
  if ($_POST['publish'] == 'publish'){
  echo '&lt;script&gt;alert(&quot;Publish&quot;); &lt;/script&gt;';
  }
  if ($_POST['edit'] == 'publish'){
  echo '&lt;script&gt;alert(&quot;edit&quot;); &lt;/script&gt;';
  }
  if ($_POST['draft'] == 'publish'){
  echo 'draft';
  }   
      ?&gt;
  </code></pre>
  <p>If I click on any button nothing happens. I am not getting anything nor any error. Nothing appears in firebug as well.</p>