title: Having 2 forms on same page but only loading second after first is submitted
body: <p>So what i want do is, have a form displayed on load where it asks user for their details such as name etc, then once the user clicks submit, i want that information to carry over to the next form, i know i have to hidden fields for that. </p>
  
  <p>I want another form to be displayed after they click submit, this all has to be done using POSTBACK, so pretty much having 2 forms on one php page but only displaying the second one after the first has been submitted. </p>
  
  <p>I know i can do this by creating two different php files and using header but i would like to learn how to do it via postback. </p>
  
  <pre><code> &lt;form name="firstform" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt; "       onSubmit="return validator();"&gt;
   &lt;p&gt;Please fill in the following form&lt;/p&gt;
   &lt;p&gt;Given Name*  &lt;input type="text" name="fname" id="fname"/&gt;&lt;br/&gt;
       Middle Name &lt;input type="text" name="mname"/&gt;&lt;br /&gt;
       Family Name* &lt;input type="text" name="lname" id="lname"/&gt;&lt;br /&gt;
       Chosen Username* &lt;input type="text" name="uname"/&gt;
    &lt;/p&gt;
    &lt;p&gt;&lt;input type="submit" value="submit" id="submit"/&gt;&amp;nbsp;
    &lt;/form&gt;
  
    &lt;form name="secondform" method="post" action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt; " &gt;
      Test* &lt;input type = "text" name="test"/&gt;
    &lt;/form&gt;
  </code></pre>