title: TwoPHP blocks in file
body: <p>i have two HTML forms and two PHP blocks in one file (index.php). for example i want the second php script belonged to the second form. i dont know, how to do it. What i write to the action atribute ?</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;form method="post" action="htmlspecialchars $_SERVER ["PHP_SELF"]"&gt;
  &lt;input type="text" name="name"&gt; &lt;br&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  
  &lt;form method="post" action="htmlspecialchars $_SERVER ["PHP_SELF"]"&gt;
  &lt;input type="text" name="age"&gt; &lt;br&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  
  &lt;?php
  echo $_POST ["name"];
  ?&gt;
  
  &lt;?php
  echo $_POST ["age"]; 
  ?&gt;
  </code></pre>