<?php echo form_open_multipart('partner/register_send', 'id="frm"');?>
<div class="form">
<table class="form_table2">
<tr>
<th>名字
</th>
<td><input name="name" type="text" id="name"></td>
<th>上傳
</th>
<td>
<input name="img[]" type="file" id="img1">
<input name="img[]" type="file" id="img2">
</td>
</tr>
</table>
</div>
<div class="btn">
<input type="submit" value="upload" />
<a class="send">送出
</a>
</div>
</form>
<script type="text/javascript">
$(document).ready(function() {
$('a.send').click(function(){
$.post('/upload_file/', $('#frm').serialize() , function(data) {}, 'json');
});
});
</script>