软件上传问题:
作者:cmscn 日期:2005-04-23
admin_down.asp文件:
修改的地方有俩处:
I:sub joekoe_chk_edit()
源代码:
<td>本站下载:</td>
<td><input type=text name=url value='<%response.write rs("url")%>' size=60 maxlength=200><%response.write redx%></td>
</tr>
…………
<tr>
<td><%response.write tit_fir%>图片:</td>
<td><input type=text name=pic value='<%response.write pic%>' size=40 maxlength=100> <a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic' target=upload_frame>上传图片</a> <a href='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write left(index_url,1)%>&uptext=remark' target=upload_frame>上传至内容</a></td>
</tr>
<tr>
<td>上传图片:</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src='upload.asp?uppath=<%response.write index_url%>&upname=<%response.write ispic%>&uptext=pic'></iframe></td>
</tr>
俩段代码不在一起。。现在合二为一:
修改后:
<td>本站下载:</td>
<td><input type=text name=url value='<%response.write rs("url")%>' size=60 maxlength=200><%response.write redx%> <a href='upload.asp?uppath=down&upname=<%response.write ispic%>&uptext=url' target=upload_frame>点击上传</a></td>
</tr>
<tr>
<td><%response.write tit_fir%>图片:</td>
<td><input type=text name=pic value='<%response.write pic%>' size=60 maxlength=100> <a href='upload.asp?uppath=down&upname=<%response.write ispic%>&uptext=pic' target=upload_frame> 上传图片</a></td>
</tr>
<tr>
<td>文件上传:</td>
<td><iframe frameborder=0 name=upload_frame width='100%' height=30 scrolling=no src=''></iframe></td>
</tr>
还有一处:
II:sub joekoe_chk_add()
和上面重复^_^
接下来是关键的地方:
upload.asp文件:
311行
if instr(up_text,"pic")>0 then
改为 if instr(up_text,"pic")>0 or instr(up_text,"url")>0 then
评论: 8 | 引用: 3 | 查看次数: 622
发表评论