title: Why when clicking a button which is created after another button is clicked is being removed using PHP?
body: <p>I want to have a button (button1)  if it is clicked I want to display another button (button2)
  and if button2 is clicked I want to display something else , it is working fine  but button2 is removed  after is clicked  , is button1 being unset when button2 is clicked ? How can I make it stay still but I want it to appear only after button1 is clicked
  Here is an example code :</p>
  
  <pre><code>&lt;body&gt;
      &lt;form action="" method="POST"&gt;
       &lt;input type="submit" name='submit' value='1'  &gt;
      &lt;/form&gt;
  
      &lt;?php
        if(isset($_POST['submit']))
        {
            echo "
             &lt;form action='' method='POST'&gt;
       &lt;input type='submit' name='submit2' value='2'  &gt;
      &lt;/form&gt;
            ";
        }
      ?&gt;
  
       &lt;?php
        if(isset($_POST['submit2']))
        {
            echo "
             &lt;form action='' method='POST'&gt;
       &lt;input type='submit' name='submit3' value='3' &gt;
      &lt;/form&gt;
            ";
        }
      ?&gt;
  &lt;/body&gt;
  </code></pre>