把file标签修改如下面的形式:
<input name="fileshow" id="fileshow" value="c:\a.jpg" readonly>
<input type=button value="浏览" onclick="file.click()">
<input type=file name=file id=file onchange="fileshow.value=this.value" style="display:none">
在这种情况下怎么提交呢?
象原来的方式
<form id=test name=test action="" method=post enctype="multipart/form-data">
怎么不起作用呢!
<input name="fileshow" id="fileshow" value="c:\a.jpg" readonly>
<input type=button value="浏览" onclick="file.click()">
<input type=file name=file id=file onchange="fileshow.value=this.value" style="display:none">
在这种情况下怎么提交呢?
象原来的方式
<form id=test name=test action="" method=post enctype="multipart/form-data">
怎么不起作用呢!
解决方案 »
- 小女子请教高手onbeforeunload 不执行的问题。
- colorbox,document.ready的问题求救
- 急急急急!cookie禁用后仍能用document.cookie =来写入cookie
- 如果一个input的top,left未赋值,我能不能取得页面上这个input的top与left值
- 有什么办法可以让window.open打开的页面是最大化
- 利用javascript 进行单词组合
- google 地图生成问题!跪求!
- 一个函数传值出现的问题
- 谁能给一个输入日期校验的例子和把数字转换成货币显示的例子!
- 谁能告诉我这段代码是什么意思?
- JS循环问题
- 如果在框架里如果发现session为空就转向首页
你如果要得到文件,这样做是不行的。读客户端读不到,如果一定要用的话,可以试试ActiveX。利用这个组件可以读文件。保存成一个流,上传试试,也许可以,我没有试过
可以控制坐标<input type=file style="left:-1000px;top:-1000px"/>
<input type=file style="left:-1000px;top:-1000px"/>
这种方法不行,file标签还是能显示出来!
后,那个file标签是看不到了!
但是还是没有解决我的问题,依然不能提交!!mmcgzs:给的方法,我还没有测试通过!