title: storing a TextBox value(in a html page) in php array variable which is then stored in a session
body: <p>I am totally new to coding and i would need some help regarding this question of mine.
  the question is that,</p>
  
  <p>I have around 5 html pages.I am trying to walk the user through each phase and thats the reason i have diffent page for entering the info.Each html page has certain text fields.For ex</p>
  
  <pre><code>Page1:lastname,firstname,mi...
  Page2:address,phone,city,state,zip
  Page3:date of join,time of joining,person who referred you
  Page4:insurance info,insurance number
  Page5:directions to the place, and so on.
  </code></pre>
  
  <p>Now the thing is that, i need to store the field values using sessions in php.</p>
  
  <p>Suppose the user goes from page 1 to page 2(after filling all the details), and then if he wants to visit page 1,he should have all the fields populated with the data which he sent before(these details can be changed now).I want to store all the fields in a PHP array and then store the array using sessions.</p>
  
  <p>My question is that how do we set the value of the php variable to the Value in the Textbox(the textbox will have the value entered by the user) and how do i design the array, and store it in the session.</p>
  
  <p>Also can i use the same session variables across all the pages,so that i could save all the details entered by one particular in the array(which is then stored in the session).</p>
  
  <p>Any help is greatly appreciated.</p>