title: Post several forms with Jquery
body: <p>i have a very difficult one today for you to help me</p>
  
  <p>this is my xhtml</p>
  
  <pre><code>&lt;iframe id="myFrame0" name="myFrame" &gt;&lt;/iframe&gt;
  &lt;iframe id="myFrame1" name="myFrame" &gt;&lt;/iframe&gt;
  &lt;iframe id="myFrame2" name="myFrame" &gt;&lt;/iframe&gt;
  
     &lt;form method="post" action="tesb.php" target="#myFrame0" name="form1"&gt;
          &lt;input name="sent"  type="text" id="sent1" /&gt; 
      &lt;/form&gt;
  
      &lt;form method="post" action="tesb.php" target="#myFrame1" name="form2"&gt;
          &lt;input  name="sent"  type="text" id="sent2" /&gt; 
      &lt;/form&gt;
  
      &lt;form method="post" action="tesb.php" target="#myFrame2" name="form3"&gt;
          &lt;input name="sent"  type="text" id="sent3" /&gt; 
      &lt;/form&gt;
  </code></pre>
  
  <p>that's the resulting xhtml after php (so.. it may be more than three forms / iframes)</p>
  
  <p>one simple link to call a javascript function</p>
  
  <pre><code>&lt;a href='#' id="other"&gt;Click Here To Submit the Forms &lt;/a&gt;
  </code></pre>
  
  <p>this is my script, really simple btw</p>
  
  <pre><code>$(document).ready(function () {
      $('#other').click(function() {  
      $('#myFrame0').submit();
      $('#myFrame1').submit();
      $('#myFrame2').submit();
      });
  });
  </code></pre>
  
  <p>ok, the question is:</p>
  
  <p>the inputs doesn't post at all but, if i add a submit button (input type=submit) it will perfectyl post just one of the three forms ..</p>
  
  <p>this is the destination php (just to see if everything is posted)</p>
  
  <pre><code>&lt;? 
  echo $_POST["sent"];
  ?&gt;
  </code></pre>
  
  <p>the rules are.. </p>
  
  <ol>
  <li>i can't edit testb.php (destination.. since that's a blackbox from an existing system)</li>
  <li>i can just send one item at a time.</li>
  <li>no sessions, no arrays, no url post</li>
  </ol>
  
  <p>but i need to send several forms one by one to the same destination.. and it has to be one by one.</p>
  
  <p>any clue to fix or improve my script?</p>
  
  <p>thanks!</p>