📄 booksave.asp
字号:
<!--#include file="top.asp"-->
<%
act=request("act")
if act="add" then
company=request("company")
name=request("name")
tel=request("tel")
fax=request("fax")
email=request("email")
title=request("title")
introduce=request("introduce")
sql="select * from book"
res.open sql,con,1,3
res.addnew
res("company")=company
res("name")=name
res("tel")=tel
res("fax")=fax
res("email")=email
res("title")=title
res("introduce")=introduce
res.update
response.write "<script language=javascript>alert('留言成功!');window.location='book.asp';</script>"
res.close
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=web%></title>
<script language=javascript>
function check()
{
if(document.myform.name.value==""){
alert("联系人不能为空!");
myform.name.focus();
return false;
}
if(document.myform.tel.value==""){
alert("联系电话不能为空!");
myform.tel.focus();
return false;
}
if(document.myform.title.value==""){
alert("主题不能为空");
myform.title.focus();
return false;
}
if(document.myform.introduce.value==""){
alert("详细内容不能为空");
myform.introduce.focus();
return false;
}
}
</script>
</head>
<BODY leftMargin=0 topMargin=0>
</body>
</html>
<% con.close
set con=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -