[Solved] How to store search result by using session? [closed]


     <?php session_start();  //to start session

      $_SESSION['search_result'] = $_REQUEST['search_result'];

     //$_REQUEST['search_result'] is the data you get from GET Mehthod or POST Method of variable search_result


     ?>



      To acess it on other page

      <?php

      session_start();
      $search_result = $_SESSION['search_result'];

solved How to store search result by using session? [closed]