title: Storing the previous search
body: <p>I am developing a website in PHP for booking the trains. When a user logins to his account he will be able to search available trains and he will get a number of available trains in another webpage. </p>
  
  <p>I need to save the result page he got for the search, so that whenever he logs back to his account he can see his search history. Can anyone tell me the code for this?</p>