title: Form action affects only the form itself
body: <p>I'm working on a single PHP file, which has 2 different forms.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;form action="index.php" method="POST"&gt;
  &lt;input type="checkbox" name="box1"&gt;
  &lt;input type="submit" value="submit1" name="submit"&gt;
  &lt;/form&gt;
  &lt;br&gt;
  &lt;form action="index.php" method="POST"&gt;
  &lt;input type="checkbox" name="box2"&gt;
  &lt;input type="submit" value="submit2" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My problem is, I want to make both of them work at the same time, independent from each other. For example, when I hit 'submit1', the whole index.php reloads since action is set to that page. The other checkbox might lose it's condition, if I set it to checked before submitting the first form. Might be confusing, I know.. Since I have PHP code behind, I can' really handle the whole thing between 1 form tag. That's why I'm asking if there's another option like javascript, or something. Thanks in advance!</p>