我正在使用 plupload(http://www.plupload.com/index.php),我想知道如何将表单中的变量传递给 upload.php 文件,我试过这个:
<form method="post" action="dump.php">
<input type="text" id="event_id"/>
<div id="uploader">
<p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
</div>
</form>
$(function() {
$("#uploader").plupload({
// General settings
runtimes : 'flash,html5,browserplus,silverlight,gears,html4',
url : '../upload.php?event_id='+$("#event_id").val(),
max_file_size : '1000mb',
max_file_count: 20, // user can add no more then 20 files at a time
chunk_size : '1mb',
unique_names : false,
像这样(在查询字符串中传递 var)不起作用。