docuemnt.testFile.xxxx
javascript

解决方案 »

  1.   

    提交文件数据,form里面要加 enctype="multipart/form-data"的属性。
      

  2.   

    <form action="" name="testFile" method="post">
    <input type="file" name="file" onChange="javascript:path.value=value;" style="display:none">
    <input type="text" name="path" value="">
    <input type="button" value="test!" onclick="haha();">
    </form> 
    <script language="javascript">
    function haha(){
    tmp1 =  testFile.path.value;
    testFile.file.click();
    tmp2 = testFile.path.value;
    if(tmp1!=tmp2)
    testFile.submit();
    }</script>
    IE 6.0.2800.1106
    win2000
    无错通过。
      

  3.   

    楼上的吓我一跳呢。还好我的有错.仍然是拒绝访问.
    ie 6.0.3790
    win2003