2 HTML forms with same submit - POST through values from both
<p>Ok , maybe a hard one to explain. I have a form that is built using <a href="http://www.imavex.com/pfbc2.0-php5/index.php#project-overview" rel="nofollow">PHP Form Builder Class</a></p>

<p>Which looks like:</p>

<pre><code>$form = new form("firstForm");
    $form-&gt;setAttributes(array(
             "width" =&gt; 600,
             "noAutoFocus" =&gt; 1,
             "jsIncludesPath" =&gt; "lib/php-form-builder-class/includes",
             "action" =&gt; "uploader.php"
    ));

    $form-&gt;addTextbox("Enter a Title:", 'title' , $row['title']);
    $form-&gt;addTextbox("Enter a Promo Code:", "promo" , $row['promo']);
    $form-&gt;addWebEditor("Description", "description", $row['description'], array("basic" =&gt; 1));
    $form-&gt;addWebEditor("Terms and Conditions", "terms", $row['terms'], array("basic" =&gt; 1));
    $form-&gt;addHidden("img_urls", $row['img_urls']);
    $form-&gt;addHidden("destination", $row['destination']);
    $form-&gt;addHidden("header", $row['headerimg']);
    $form-&gt;addHidden("cmd", "submit_0");
    $form-&gt;addButton();
    $form-&gt;render();
</code></pre>

<p>I want to add some jQuery to one of the elements to allow drag and drop,  so I've made another form element:</p>

<pre><code>?&gt;
    &lt;form id="firstForm"  action="uploader.php" method="post" &gt;
    &lt;ul class="sortable"&gt; 
    Mags Select:
    &lt;?
    foreach ($profiles as $mag) {
    ?&gt;
    &lt;div id="sorty"&gt;&lt;input type="checkbox" name="units" value="&lt;? echo $mag ?&gt;" /&gt;&lt;label&gt;&lt;? echo $mag ?&gt;&lt;/label&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;? }  ?&gt;
    &lt;/ul&gt;
    &lt;/form&gt;
</code></pre>

<p>How can I make the jQuery part post through its values 'units' when the PHP Form Builder Class is submitted? </p>

<p>Ive had a look at adding a method to the class, but wondered if there was an easier way? </p>

<p>EDIT: </p>

<p>The PHP Form Builder Class form is self contained, so wherever the jQuery form is in the page, it will always be outside the other. </p>
