我有下面的代码,需要以某种方式让它工作。我知道你不能在另一个里面提交一份表格,所以我想知道是否有办法解决这个问题。
<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>
答案 0 :(得分:3)
将内部表单放入单独的文档中,并将其嵌入iframe
。