title: How to store post variables value
body: <p>I got a Index page on which search page is included, and when I submit it, it passes values to find.php through action and method post. The code is below</p>
  
  <pre><code>if($_POST['searchsubmit']=="Search"){
  $cat=$_POST['searchcategory'];
  $area=$_POST['searcharea'];
  $term=$_POST['searchbox'];
  }
  </code></pre>
  
  <p>The above code is written on find.php, Now when I try to implement paging through basic paging method with where conditions to make appropiate search query</p>
  
  <pre><code>$where="where approved='yes'";
          if($term!=""){
              $where.=" and name like '%$term%'";
          }
          if($cat!=""){
              $where.=" and category like '%$cat%'";
          }
          if($area!=""){
              $where.=" and area like '%$area%'";
          }
          $start=0;
          $end=5;
          if($_GET['page']!="")
          {
              $start=$_GET['page']*$end;
          }
  </code></pre>
  
  <p>Where $start is my initial limit, and $end is my number of records. For the first page of paging, I pass a variable page with 0 for first page</p>
  
  <pre><code>&lt;a href="find.php?page=&lt;?php echo 0;?&gt;"&gt;First&lt;/a&gt;
  </code></pre>
  
  <p>and my search query now becomes</p>
  
  <pre><code>$que="select * from shops ".$where." ORDER BY likes DESC  limit $start,$end";
  </code></pre>
  
  <p>As soon as I click on "first", My new link become "/find.php?page=0"
  and the post values which I recivied from index page search bar are lost.</p>
  
  <p>Is there any way to retain those values ?The two methods which I though are sending them again through url with GET, or the other way is to store them in session. 
  Is there any third method available ?</p>