title: Show forms from php with jquery in php
body: <p>I have a php file that has 3 forms inside and some insert queries and i separate them with if(isset()) based on what variable comes from $_POST. I want to make the forms appear for example on the center of the page and when the user presses submit the form fades out and the next one from the isset appears. How can i do that?</p>
  
  <p>For example this is the first form</p>
  
  <pre><code>&lt;?php if (!isset($_POST['date'])): ?&gt;
        &lt;?php if (!isset($_GET['id'])):?&gt;
          &lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF']?&gt;"&gt;
  
            Date :
            &lt;input type="text" name="date" id="date"&gt; &lt;/br&gt;
            &lt;input type="submit" value="Submit" /&gt;
          &lt;/form&gt;
          &lt;script&gt;
            $("#date").datepicker();
          &lt;/script&gt;
          &lt;?php endif;?&gt;
            &lt;?php endif;?&gt;
  </code></pre>
  
  <p>And then if the user presses submit there is an if(isset()) with an insert query.</p>
  
  <p>After the insert query there is another form</p>
  
  <pre><code> &lt;?php if (isset($_GET['id'])): ?&gt;
  
                  &lt;form action="&lt;?php echo $_SERVER['PHP_SELF']?&gt;&lt;?php echo " ?id=" . $_GET['id'] . " &amp;date=" . $_GET['date'] . " &amp;seats=" . $_GET['seats']; ?&gt;" method="post"&gt;
  
                    Ώρα :
                    &lt;input type="text" name="time"&gt;
                    &lt;input type="submit" name="submit"&gt;
                  &lt;/form&gt;
                  &lt;?php endif;?&gt;
  </code></pre>
  
  <p>So what i want is to display them on the center of my page but i dont have to open another page every time i press submit and they will fadeout (or something similar) and display the next form.</p>