上海上港亚冠球票:ASP中关于按钮和文本框
来源:百度文库 编辑:神马品牌网 时间:2024/10/04 16:39:12
点击文本框旁边的按钮,弹出选择文件的对话框,选种文件后,文件的路径自动显示在文本框里,怎么实现?
如果我想取特定的路径呢?
比如"f:my\music\"自动的省略,或者变成"..\"后面的不变,怎么办?
请高手指点
如果可以的话给个例子也可以
我的QQ:28615927
谢谢了
如果我想取特定的路径呢?
比如"f:my\music\"自动的省略,或者变成"..\"后面的不变,怎么办?
请高手指点
如果可以的话给个例子也可以
我的QQ:28615927
谢谢了
<form id="form1" name="form1" method="post" action="">
<input type="file" name="file" />
</form>
在下一个页面
file=replace(request.form("file"),"f:my\music","..")
response.writ file
得到 ..\
<input type="file" name="textfield" />
这样就可以了
<input type="file" name="file1">