怪了怪了,我点的提交,他却帮我清空了
大家帮我看下这个表单出了什么问题?
我点"上传图片"这个button,执行的动作是form1.submit(),
他却先帮我清空了表单,再点这个按钮时就提交空表单.
<form method="post" name="form1" action="ad_upload22.asp" enctype="multipart/form-data">
<input type="file" name="file1" class="input1" size="10" style="display:none" onchange="filename.value=file1.value;">
<input type="hidden" name="filepath" value="picture">
<input type="hidden" name="filename">
<input type="button" name="Submit" value="浏览..." onclick="file1.click();" style="height:20px">
<input type="button" onclick="form1.submit()" style="height:20px" name="Button" value="上传图片" class=input1>
</form>