title: embed html form to php code
body: <p>I have a form on on html outside of php...</p>
  
  <pre><code>&lt;form method="post" action=""&gt;
  &lt;input type="text" name="user"/&gt;&lt;/br&gt;
  
  &lt;input type="submit" value="submit" name="login"/&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>then call submit button from php and do this</p>
  
  <pre><code>if(isset($_POST["login"]))
      {
  
              print &lt;&lt;&lt;this
  
      &lt;form method="post" action=""&gt;
              &lt;input type="submit" name="apply"/&gt;
              &lt;/form&gt;
  this;
  
  
               if(isset($_POST["apply"]))
               { print "it works";}
  
  
      }
  </code></pre>
  
  <p>Alright, so the problem is that, "it works" won't print from the second form thats inside the php. it just takes me back to where i came from. Perhaps it's a dumb question, please help though! thanks</p>