28,391
社区成员
发帖
与我相关
我的任务
分享
<!--#include file="validate.asp"-->
<!--#include file="conn.asp"-->
<%
if request("action")="modify" then
set rs=server.createobject("adodb.recordset")
sql="select * from main"
rs.open sql,conn,1,3
rs("title_1")=trim(request.form("title_1"))
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language=javascript>alert('提交成功!');location.href('edit_main.asp');</script>"
Response.End
end if
%>
<html>
<head>
<title>修改内容</title>
<STYLE type=text/css>
BODY {BACKGROUND:#799ae1; MARGIN: 0px; FONT: 9pt 宋体}
TABLE {BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px}
TD {FONT: 12px 宋体}
</STYLE>
</head>
<body>
<form method="POST" name="form" id="form" action="?action=modify">
<table border="0" align="center" bgcolor="#CCFFFF">
<tr height="50"><td align="left">标题</td><td width="250"><input name="title_1" type="text" id="title_1" value="<%=rs("title_1")%>" > </td></tr>
<tr align="center"><td colspan="5" ><input type="submit" name="submit" value="修改"></td></tr>
</table>
</form>
</body>
</html>