问:
表单代码如下:
<form name="form1" method="post" action="this.asp" enctype="multipart/form-data">
<input type="button" name="Button" value="Button" onclick="form1.file.click();da()">
<input type="file" name="file" >
<input type="submit" name="Submit" value="Submit">
</form>
所用到的函数da()
function da()
{
form1.submit(); //提交后出错就在这一行
} 在这个表单中我要实现的功能为:当点击button时,就实现类似点击<input type="file">的控件般,可选择文件.因为我最终的目的是让用户看不到<input type="file">控件.但现在提交时就会报错,不知该如何解次是好. 请指点......
表单代码如下:
<form name="form1" method="post" action="this.asp" enctype="multipart/form-data">
<input type="button" name="Button" value="Button" onclick="form1.file.click();da()">
<input type="file" name="file" >
<input type="submit" name="Submit" value="Submit">
</form>
所用到的函数da()
function da()
{
form1.submit(); //提交后出错就在这一行
} 在这个表单中我要实现的功能为:当点击button时,就实现类似点击<input type="file">的控件般,可选择文件.因为我最终的目的是让用户看不到<input type="file">控件.但现在提交时就会报错,不知该如何解次是好. 请指点......
解决方案 »
- 简单问题,泛型
- URL中有#号如何来获取参数啊? 求教
- 修改后返回上一页面的问题
- .NET初级问题,请大哥们帮帮小弟
- 在北京上地找到工作,需求合租.
- Cannot find the script or external object that implements prefix
- 问无法找到脚本库\aspnet_client\system_web\1_1_4322\WebUIValidation.js,可文件存在啊
- 问一下引用的问题
- 怎麼把字符串的字符一個個讀出來?
- 急啊,思归等大侠,就这么多分了!
- 我的Session为什么在类库里面不能用?
- 请教http://www.chinese168.cn/网站的天气预报是如何做的?谢谢!!!
<input type="button" name="Button" value="Button" onclick="form1.file.click();">
<input type="file" name="file" style="display:none;">
<input type="submit" name="Submit" value="Submit">
</form>