title: php get value from a form on previous page
body: <p>I am having trouble with getting values from radio buttons on a previous page. My current html + php code words fine with the search bar which is the first form below. However I want to be able to have radio button filters below the search bar.</p>
  
  <pre><code> &lt;section class="bar"&gt;
          &lt;form action="/sub/search.php" method="post"&gt;
              &lt;input type="test" name="criteria" placeholder="Search..."&gt;
              &lt;button&gt;Search&lt;/button&gt;
          &lt;/form&gt;
      &lt;/section&gt;&lt;br&gt;
  
      &lt;form style="text-align:center" method="post" name="rb_filters"&gt;
          &lt;input type="radio" name="rb_filters" value="1"&gt;1
          &lt;input type="radio" name="rb_filters" value="2"&gt;2&lt;br&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>In my php code I would like to run certain functions based on which radio button is checked.
  So what I tried to do is this: </p>
  
  <pre><code>if($_POST['rb_filters']=='1')
  {
       /* run code */
  }
  </code></pre>
  
  <p>However it does not work =/ Any help would be much appreciated =D.</p>