Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Kind of old topic, but this one might be useful for someone:</p> <p>As someone mentioned above - you can use dummy form. I had to overcome this issue some time ago. At first I totally forgot about this HTML restriction and just added the nested forms. Result was interesting - I lost my first form from the nested. Then it turned out to be some kind of a "trick" to simply add a dummy form (that will be removed from the browser) before the actual nested forms.</p> <p>In my case it looks like this:</p> <pre><code>&lt;form id="Main"&gt; &lt;form&gt;&lt;/form&gt; &lt;!--this is the dummy one--&gt; &lt;input...&gt;&lt;form id="Nested 1&gt; ... &lt;/form&gt; &lt;input...&gt;&lt;form id="Nested 1&gt; ... &lt;/form&gt; &lt;input...&gt;&lt;form id="Nested 1&gt; ... &lt;/form&gt; &lt;input...&gt;&lt;form id="Nested 1&gt; ... &lt;/form&gt; ...... &lt;/form&gt; </code></pre> <p>Works fine with Chrome, FireFox and Safari. IE up to 9 (not sure about 10) and Opera does not detect parameters in the main form. The $_REQUEST global is empty, regardless of the inputs. Inner forms seems to work fine everywhere.</p> <p>Haven't tested another suggestion described here - fieldset around nested forms.</p> <p><strong>EDIT</strong>: Frameset didn't work! I simply added Main form after the others (no more nested forms) and used jQuery's "clone" to duplicate inputs in the form on button click. Added .hide() to each of the cloned inputs to keep layout unchanged and now it works like a charm.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload