有能耐的、有本事的、会写代码的、不是只会吹的……就来告诉我:如何获取<input type="file" name="upfile">中的内容,包括完整的路径和文 提交的时候用script将文本域的值赋值到隐藏域里,后台取这个隐藏域的值就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language=javascript>function setpath(){ form1.hidpath.value = form1.upload.value; alert(form1.hidpath.value)}</script><form onsubmit="setpath()" name=form1><input type=file name=upload><input type=submit><input type=hidden name=hidpath></form> 还有没有更好的方法呢?我用的是php,我知道能用$_files取得文件名,但是就是搞不懂怎么得到前面的完整的路径 后台这样取<% fullpath = Request.Form("hidpath")%> 我在后台用的是$_post["hidpath"]来取的,得到的是C:\\Documents and Settings\\Administrator\\桌面\\h3.gif,这不符合php的要求啊,莫非我还得用一次字符的替换??? echo stripslashes($_POST["hidpath"]); history.go(-1)问题?? ini_set('upload_tmp_dir','./temps/')无效。 php有tkinter吗? PHP如何时刻获取exec的返回值 各位大虾帮忙看看这个符号转换的问题 域名设置 在线等待。。。。关于表单传递变量的问题!!! 欲高价购买一套类似碧聊的语音聊天程序. UP者有分! 再问MYSQL的问题?谢谢 怎么会一直显示暂无内容 一个关于MYSQL中MYSQL_NUM_ROWS()函数的问题! session不是关闭页面的时候自动没有了吗?
function setpath()
{
form1.hidpath.value = form1.upload.value;
alert(form1.hidpath.value)
}
</script>
<form onsubmit="setpath()" name=form1>
<input type=file name=upload>
<input type=submit>
<input type=hidden name=hidpath>
</form>
<%
fullpath = Request.Form("hidpath")
%>