问题代码应该是这样<form name="form1" method="post" action="some.asp" enctype="multipart/form-data" >
<input type="file" name="file1" value="">
<input type="submit" name="Submit" value="">
</form>
<a onclick=" document.form1.file1.click();" href="#">CLICK</a>
<input type="file" name="file1" value="">
<input type="submit" name="Submit" value="">
</form>
<a onclick=" document.form1.file1.click();" href="#">CLICK</a>
http://expert.csdn.net/Expert/topic/1350/1350963.xml?temp=.4764826
<input type="file" name="file1" onkeydown="return false" onpaste="return false">
<input type="submit" name="Submit" value="">
</form>
<form name="form1" method="post" action="some.asp" enctype="multipart/form-data" >
<input type="file" name="file1" value="">
<input type="submit" name="Submit" value="">
</form>
<a onclick=" document.form1.file1.click();" href="#">CLICK</a>
为什么呢?怎样解决?
如下:不就行了?
<a onclick=" document.form1.submit();" href="#">CLICK</a>