[求助]图片绑定SESSION(ID)上传
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrb(13)&chrb(10)
divider=leftb(formdata,clng(instrb(formdata,bncrlf))-1)
datastart=instrb(formdata,bncrlf&bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
res.open "SELECT * FROM letter where id is null",conn,1,3
res.addnew
res("letterpic").appendchunk mydata '图片添加进数据库
res.update
res.close
conn.close
Set res=nothing
Set conn=nothing
%>
在图片添加进数据库的时候,怎样让它存入ID=session("id")的记录里边呢?????????
不知道怎样上传ID=session("id"),而且含有图片标题等内容的记录
请各位帮帮忙啊~~这个星期叫交了 谢谢~