📄 edit.asp
字号:
<!--#include file="func.asp"-->
<%
id=request.querystring("id")
if id="" or id=0 then
errmsg="修 改 ID 错 误 !"
errshow(errmsg)
else
%>
<!--#include file="conn.asp"-->
<%
set editreco=server.createobject("adodb.recordset")
sqlstr="select * from book where id=" &id
editreco.open sqlstr,conn,1,1
if not editreco.eof then
id=editreco("id")
bid=editreco("bid")
title=trim(editreco("title"))
username=trim(editreco("username"))
usermail=trim(editreco("usermail"))
content=editreco("content")
reply=editreco("reply")
%>
<html>
<head>
<title>my bbs-修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body bgcolor="#FFFFFF" background="images/bg.gif">
<form method="post" action="saveedit.asp" name="forum">
<table width="100%" border="0" cellspacing="2" cellpadding="2" class=buinput>
<tr>
<td>标题:
<input type="text" name="title" maxlength="100" size="30" class=input value='<%=title%>'>
<input type="hidden" name="id" value=<%=id%>>
<input type="hidden" name="bid" value=<%=bid%>>
</td>
</tr>
<tr>
<td>大名:
<input type="text" name="username" maxlength="30" size="30" class=input value='<%=username%>'>
</td>
</tr>
<tr>
<td>妹儿:
<input type="text" name="usermail" maxlength="50" size="30" class=input value='<%=usermail%>'>
</td>
</tr>
<tr>
<td>回复:
<input type="text" name="reply" maxlength="5" size="30" class=input value='<%=reply%>'>
</td>
</tr>
<tr>
<td valign="top">文章:
<textarea name="content" cols="50" rows="12" class=txtinput><%=content%></textarea>
</td>
</tr>
<tr>
<td>
<input type="submit" name="send" value=" 修 改 " class=buinput>
<input type="button" name="reset" value=" 关 闭 " class=buinput onclick="javascript:self.close()">
</td>
</tr>
</table>
</form>
</body>
</html>
<%
set preco=nothing
set conn=nothing
else
errmsg="修 改 ID 错 误 !"
errshow(errmsg)
end if
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -