图片上传的功能,怎样把值(图片名)传到表单的隐藏域,再提交? 服务器都可以直接得到,放在隐藏域,是多此一举 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 怎样得到?我是在另一个页面上传的,要在提交页面显示文件名,并和其它数据一起提交到数据库。。 这样试试~`<input type="hidden" name="imgName"> <!--提交数据页--><iframe src=upload.asp></iframe> <!--iframe里是上传文件页-->upload.asp <!--文件上传页面--><script> function SendImgName() { parent.document.all.imgName.value = document.all.file1.value; return true; }</script><form onSubmit="return SendImgName();" ....<input type="file" name="file1"> txt文件编码转换 if(-f aa.txt) then 什么意思 php如果对xml操作? select去不到,什么问题呢? 100分,求如何按每个月统计注册会员数 iis5和php4.0如何配置 请问如何向access中创建表? 如何配置PHP保护系统suhosin才能让native app可以上传图片 使用dirname(__FILE__) 需要把反斜杠转化为斜杠吗? [PHP debug]html文件的某个post方法对应action=xx.php,却无法触发php中的断点 求一正则取文字 分不夠再加 100分, 请教下面句子的含义
我是在另一个页面上传的,要在提交页面显示文件名,并和其它数据一起提交到数据库。。
<script>
function SendImgName()
{
parent.document.all.imgName.value = document.all.file1.value;
return true;
}
</script>
<form onSubmit="return SendImgName();" ....
<input type="file" name="file1">