<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/Conn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Ìí¼ÓÆÀÂÛ</title>
<link href="new/css.CSS" rel="stylesheet" type="text/css">
<style> 
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #f2f2f2;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 8px;
	margin-bottom: 0px;
}
</style>
<link href="new/css.CSS" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 8px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<%

set rs=server.createobject("adodb.recordset")
sql="select * from [photocomment]"
rs.open sql,Conn,1,3
userid=Trim(Request.Form("userid"))
if trim(request.Form("content"))<>"" then
rs.addnew
classid=Trim(Request.Form("classid"))
photoid=Trim(Request.Form("photoid"))
content=trim(request.Form("content"))
rs("content")=content
rs("photoid")=photoid
rs("username")=Request.Cookies("asp163")("UserName")
rs("write")=now
rs.update
response.Redirect "photo.asp?userid="&userid&"&classid="&classid
else
response.Redirect "photo.asp?userid="&userid&"&classid="&classid
end if
%>
</body>
</html>
<%

rs.close
set rs=nothing
%>