87,910
社区成员
发帖
与我相关
我的任务
分享
<input id="btSave" type=button value="保存" onclick="saveObjectInfo();">
<form id="frm1_1" name="frm1_1" method="post" enctype="multipart/form-data" target="_ifrIMG">
<input type="file" id="upload" name="upload">
</form>
<iframe name="_ifrIMG" style="display:none" width="300" height="200" ></iframe>
<script>
function saveObjectInfo()
{
document.getElementById("frm1_1").action="http://localhost/mtest.php";
document.getElementById("frm1_1").submit();
}
</script>