世屹电商是干嘛的:<input name="photo" value="传入值">
来源:百度文库 编辑:神马品牌网 时间:2024/04/28 23:05:11
添加新闻时,上传图片后,怎么把文件名传给添加页的input域,然后进行提交,保存到数据库。
代码为:
添加新闻页:
<tr>
<td width="200" height="25" valign="top"><div align="center"><font color="#FF0000">*</font>图片上传:</div></td>
<td width="500">
<input name="photo" type="text" class="inputtext" size="30">
<font color="#FF0000">*<br>
<IFRAME src="upload.asp" frameBorder=0 width="95%" scrolling=no height=23 name="upload" align="left"></IFRAME></font></td>
</tr>
处理页:
response.write "<script>parent.document.postart.photo.value='"&"upfile/"&ufp&"'</script>"
这句应该是赋值的,
现在出现上传成功,但name值为空
请问怎么解决?
代码为:
添加新闻页:
<tr>
<td width="200" height="25" valign="top"><div align="center"><font color="#FF0000">*</font>图片上传:</div></td>
<td width="500">
<input name="photo" type="text" class="inputtext" size="30">
<font color="#FF0000">*<br>
<IFRAME src="upload.asp" frameBorder=0 width="95%" scrolling=no height=23 name="upload" align="left"></IFRAME></font></td>
</tr>
处理页:
response.write "<script>parent.document.postart.photo.value='"&"upfile/"&ufp&"'</script>"
这句应该是赋值的,
现在出现上传成功,但name值为空
请问怎么解决?
parent.document.postart.photo.value
postart 是什么意思?
似乎是多余的。。。从你上面的代码来看。
<input> 通常要放在一个<form>里面,揿submit钮后它的值才能上传。
这里用了嵌入的框,嵌入 upload.asp,不知道upload.asp 的内容,也不知它如何触动<input>来
获得<input> 的值。
不触动,能得到值吗?我不懂asp,不知其所以然也。
<input name="photo" value="传入值">
关于<input type="file" name="file"/>
<input type="text" name="T13" size="4" disabled >
<input type="hidden" name="NoUse" value="">
<input type="button" onclick="DayOfWeek()" value="日期判断" name="B6"></input>无法调用SUB怎么回事?
<input name=\"introduce\" type=\"text\" on....其中的\"符号起什么作用?
<input type=button name=do1 value="删除" height=15 onClick="javascript:document.data.d
求教:在<input type=hidden name="goods">中没有为value赋值 会返回什么
<input type="file">问题
如何将按钮变成连接!<INPUT type=button value=播放 name=play>