if request.Form("method")="submit" then
phototitle=trim(request.Form("phototitle"))
photocomment=trim(request.Form("photocomment"))
photoid=trim(request.Form("id"))
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from photo where photoid="&photoid
rs1.open sql1,conn,3,3
rs1("phototitle")=phototitle
rs1("photocomment")=photocomment
rs1.update
rs1.close
set rs1=nothing
response.Redirect("photo.asp")
end if
photoid=request.QueryString("id")
'response.Write(photoid)
set rs=server.CreateObject("adodb.recordset")
sql="select * from photo where photoid="&photoid
rs.open sql,conn,1,1
phototitle=trim(rs("phototitle"))
photocomment=trim(rs("photocomment"))
photoid=trim(rs("photoid"))
formPath="upload"
%>
同学录
function checkform(){
if (document.form1.phototitle.value.length==0){
alert("图片标题不能为空!");
document.form1.phototitle.focus();
return false;
}
if (document.form1.photocomment.value.length>200) {
alert("您发表的留言大于所规定字数!");
document.form1.photocomment.focus();
return false;
}
return true
}
//-->
你的位置>同学录>编辑图片
标题:
说明: