title: how to multiple post form with single button and open all in new tab
body: <p>I have 3 postform with same func, but i do different message,</p>
  
  <p>how to create a single button to execute all button(1,2,3)? and with single button than open new tab of each button(1,2,3).</p>
  
  <pre><code>&lt;?php $url = "http://example.com"; ?&gt;
  
  &lt;form id="postform" action="&lt;?php echo "$url" ?&gt;/action.php" method="post" name="postform" target="_blank" enctype="multipart/form-data"&gt;
      &lt;table id="message"&gt;
          &lt;tbody id="post-message"&gt;
              &lt;div id="post-subject"&gt;
                  &lt;input type="text" name="subject" id="subject" value="subject 1"&gt;&lt;/input&gt;
              &lt;/div&gt;
              &lt;div id="post-message"&gt;
                  &lt;textarea name="message" id="code-message"&gt;message 1 here&lt;/textarea&gt;
              &lt;/div&gt;
              &lt;div id="post-buttons"&gt;
                  &lt;td id="post-buttons"&gt;&lt;input type="submit" name="submit" value="button 1"&gt;&lt;/td&gt;
              &lt;/div&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  &lt;form id="postform" action="&lt;?php echo "$url" ?&gt;/action.php" method="post" name="postform" target="_blank" enctype="multipart/form-data"&gt;
      &lt;table id="message"&gt;
          &lt;tbody id="post-message"&gt;
              &lt;div id="post-subject"&gt;
                  &lt;input type="text" name="subject" id="subject" value="subject 2"&gt;&lt;/input&gt;
              &lt;/div&gt;
              &lt;div id="post-message"&gt;
                  &lt;textarea name="message" id="code-message"&gt;message 2 here&lt;/textarea&gt;
              &lt;/div&gt;
              &lt;div id="post-buttons"&gt;
                  &lt;td id="post-buttons"&gt;&lt;input type="submit" name="submit" value="button 2"&gt;&lt;/td&gt;
              &lt;/div&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  &lt;form id="postform" action="&lt;?php echo "$url" ?&gt;/action.php" method="post" name="postform" target="_blank" enctype="multipart/form-data"&gt;
      &lt;table id="message"&gt;
          &lt;tbody id="post-message"&gt;
              &lt;div id="post-subject"&gt;
                  &lt;input type="text" name="subject" id="subject" value="subject 3"&gt;&lt;/input&gt;
              &lt;/div&gt;
              &lt;div id="post-message"&gt;
                  &lt;textarea name="message" id="code-message"&gt;message 3 here&lt;/textarea&gt;
              &lt;/div&gt;
              &lt;div id="post-buttons"&gt;
                  &lt;td id="post-buttons"&gt;&lt;input type="submit" name="submit" value="button 3"&gt;&lt;/td&gt;
              &lt;/div&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>thanks for help.</p>