title: submit 2 forms with 1 button
body: <p>I have already read a lot of topics but no result. I want to submit two forms with 1 button to php script.
  <code></p>
  
  <pre><code>$(document).ready(function() {
      $("#subbut").click(function() {
          $.post($("#firstform").attr("action"), $("#firstform").serialize()+$("#secondform").serialize(),
                function() {
                  alert('Both forms submitted');
                });
        });
    });
  </code></pre>
  
  <p></code>
  I tried this but it submit only 1 form. Where is the problem?</p>