?? readd.asp
字號(hào):
<!--#INCLUDE FILE="odbc_connection.asp"-->
<!--#INCLUDE FILE="function.asp"-->
<!--#INCLUDE FILE="config.asp"-->
<HTML>
<head>
<title>我的留言板</title>
<link rel="stylesheet" href="guest.css">
<script language="JavaScript">
<!--
function check_Null(){
if (document.form1.reback.value==""){
alert("回復(fù)不能為空!");
return false;
}
if (document.form1.password.value==""){
alert("密碼不能為空!");
return false;
}
return true;
}
// -->
</script>
</head>
<body >
<%
'獲取傳遞過來的記錄編號(hào)和主題
dim id,title
id=Request.QueryString("id")
title=Request.QueryString("title")
%>
<h2 align="center">回復(fù)</h2>
<form method="post" action="" name="form1" onsubmit="javascript: return check_Null();">
<table border="0" width="80%" bgcolor="#203F80" align="center">
<tr>
<td><font color=white>主題:</font></td>
<td><font color=white>re:<%=request("title")%></font></td>
</tr>
<tr>
<td><font color=white>內(nèi)容:</font></td>
<td><Textarea Name="reback" Rows=4 Cols=60></TextArea></td>
</tr>
<tr>
<td><font color=white>回復(fù)密碼:</font></td>
<td><input type="password" name="password" size="10" value=""><font color=white>必須輸入密碼,才能回復(fù)。</font></td>
</tr>
<tr>
<td><input type="hidden" name="id" value="<%=id%>"></td>
<td><input TYPE="submit" value=" 提 交 " Size="20"></td>
</tr>
</table>
</form>
<%
If Request.Form("password")=Password Then
Dim strSql
strSql="Update guest Set reback='" & myReplace(request("reback")) & "' where id=" & Request.Form("id")
db.execute(strSql)
response.redirect("index.asp")
Else
Response.Write "<p align='center'>請(qǐng)輸入正確的密碼"
end if
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -