title: maintain session between the pages in php?
body: <p>I am very new to PHP.</p>
  
  <p>I want to transfer data between pages.</p>
  
  <p>In my requirements I have the home page first, in that I have 3 fields: <em>name</em>, <em>address</em>, <em>pin</em> and then <em>submit button</em>.</p>
  
  <p>When I entered the above fields and then click on submit, it moves to <code>page2.php</code>, it has form data.</p>
  
  <p>I have transferred the first form data to second page. Now in second page I have a submit button. When I click on that button the data is submitted to a MySQL database.</p>
  
  <p>My problem is, how can I move first page values to <code>insertdata.php</code> page and submit the data ?</p>