title: Using nested forms in html document
body: <p>I am trying to set one form into another in my html document like this:</p>
  
  <pre><code>&lt;form1 action="1.php"&gt;
  some form elements
  ...................
  &lt;form2 enctype="multipart/form-data" action="upload.php" target="upload_target" onsubmit="startUpload();&gt;
  &lt;input name="myfile" type="file"/&gt;
  &lt;input type="submit" name="submitBtn" class="sbtn" value="Upload" /&gt;
  &lt;/form&gt;
  &lt;/form&gt;
  &lt;iframe id="upload_target" name="upload_target" src="#"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The first form gets data from user and inserts into my database.
  The second form  makes file upload with jquery and iframe like in this example :
  <a href="http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html">upload file with iframe and jquery</a></p>
  
  <p>I am trying to upload file in such way because I cant do it by simply transfering data to php file with javascript(with ajax). And the problem is that nested forms are not supported by w3c standards. What can I do to solve this problem?
  Thanks for help and sorry for my poor english.</p>