title: database saving and retrieving the last saved value
body: <p>I have a confusion in mind regarding a logic.. it is a form that i first want to validate then I want to save in database and then i want to display it on another page. </p>
  
  <p>I have validated it (transferring (i.e. form action) the form to the same page), I have saved it in database, and now I m trying to display the data on another page.</p>
  
  <p>What I have thought, that I'll save the data to the db and transfer some unique value to another page, maybe some sort of number auto generated by database related to the same form.</p>
  
  <p>now I have problem how to do it? Any ideas guys?</p>
  
  <p>Since it is a logic hence I am tagging php, MySQL and JS</p>