0

我有下面的代码,需要以某种方式使其工作。我知道您不允许在另一个表单中提交一个表单,所以我想知道是否有办法解决这个问题。

 <form method="post" action="somepage.php"> 
<input name="textbox_question" type="text">

<!--and there is a lot more code for this form here --> 

       <form id="fileupload" action="upload_form/server/php/" method="POST" enctype="multipart/form-data">
                       <div>
                    <div class="span7"><strong>
                       <span class="btn btn-success fileinput-button">  Add files...
                      <input type="file" name="files[]" multiple>
                          </span>

                      </button>
                    <br></br>
                    </strong></div>
                  </div>
                  <!-- The loading indicator is shown during file processing -->
                  <div class="fileupload-loading"></div>
                  <br>
                  <!-- The table listing the files available for upload/download --> 
                  <table role="presentation" class="table table-striped">
                    <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery">
                    </tbody>
                  </table>
                </form>

  <!--and there is a lot more code for this form here --> 
  </form>
4

1 回答 1

3

将内部表单放入单独的文档中,并使用iframe.

于 2012-08-31T17:26:33.210 回答