0
我想寫一個jQuery文件上傳程序, 使用這個插件http://aquantum-demo.appspot.com/file-upload 儘管這個插件真的很好,我遇到了一個問題。在jQuery中處理兩種形式時出現故障
這就是我所做的: 我設計了一個表單,圖形上傳部分使用上面列出的插件。 但是,這個插件還需要一個表單來激活PHP。
方案摘錄:
<form action="" method="get">
<--This layer probably needs other form information ex: name, telephone no....etc !-->
<form action="upload.php" method="POST" enctype="multipart/form-data">
<div class="fileupload-buttonbar">
<label class="fileinput-button">
<span>Add files...</span>
<input type="file" name="files[]" multiple>
</label>
<button type="submit" class="start">Start upload</button>
<button type="reset" class="cancel">Cancel upload</button>
<button type="button" class="delete">Delete files</button>
</div>
</form>
</form>
我知道故障是由兩種形式造成的,如果是的話,有沒有什麼辦法解決? 還是有更好的方式來提交表單?請幫幫我!感謝你們!