📄 savegoods.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!-- #include file=include/setup.inc -->
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="html/guest.css">
</head>
<body text=000000 bgcolor=000000 leftmargin="20" style="background-color: #ffffff">
<%
rem -----------------------
rem ---显示留言成功函数----
rem -----------------------
function guestAccussful
if Goods=1 then
response.write "<br>感谢你使用联发商务大酒店网上预订系统<br>"
response.write "<br>我们工作人员查看预定后尽快与你联系!<br>"
else
response.write "<br>您已经预定了"&chooseGoods(Goods-1)
response.write "<br>提交成功!请等待我们的回复.<br>"
end if
if len(title)>0 then
response.write "<br>您所在公司:<strong>"&server.htmlencode(replace(title,"''","'"))&"</strong>"
end if
if len(guest)>0 then
guest=replace(guest,"<","<")
guest=replace(guest,">",">")
guest=replace(guest,chr(34),""")
response.write "<hr size=1>您的预订留言:<pre>"&replace(guest,"''","'")&"<hr size=1></pre>"
end if
if len(name)>0 then
response.write "<br>您的姓名:"&server.htmlencode(replace(name,"''","'"))
end if
if len(homepage)>0 then
response.write "<br>您的电话:"&server.htmlencode(replace(homepage,"''","'"))&"</a>"
end if
if len(mail)>0 then
response.write "<br>您的地址:"&server.htmlencode(replace(mail,"''","'"))&"</a>"
end if
if len(shu)>0 then
response.write "<br>客户人数:"&server.htmlencode(replace(shu,"''","'"))
end if
if len(go)>0 then
response.write "<br>入住时间:"&server.htmlencode(replace(go,"''","'"))
end if
if len(up)>0 then
response.write "<br>离开时间:"&server.htmlencode(replace(up,"''","'"))
end if
if len(address)>0 then
response.write "<br>电子邮箱:"&server.htmlencode(replace(address,"''","'"))
end if
response.write "<br>时间:"&ndatetime
end function
rem -----------------------
rem ---显示成功函数结束----
rem -----------------------
name=request("name")
if len(name)>50 then
response.write "不会吧,您的名字这么长呀?"
response.end
end if
title=request("title")
if len(title)>200 then
response.write "提示:您的公司名字太长了"
response.end
end if
if title="" then
response.write "错误:请填写你的公司呀!!"
response.end
end if
homepage=request("homepage")
if len(homepage)>400 then
response.write "你的电话太长了,国际长途啊!!"
response.end
end if
Goods=request("Goods")
if isNumeric(Goods)>=0 then
Goods=0
else
Goods=Cint(Goods)
end if
if Goods<1 or Goods>chooseNum then Goods=1
mail=request("mail")
if len(mail)>100 then
response.write "警告:您的邮箱地址太长了"
response.end
end if
shu=request("shu")
if len(shu)>200 then
response.write "马上就要到桂林,不要这么激动吧!"
response.end
end if
go=request("go")
if len(go)>200 then
response.write "呵呵,你真喜欢开玩笑"
response.end
end if
up=request("up")
if len(up)>200 then
response.write "您再开玩笑,我不来了!"
response.end
end if
address=request("address")
if len(address)>200 then
response.write "您的地址太长了,填不下了!!"
response.end
end if
guest=request("guest")
if len(address)>3200 then
response.write "您的留言内容太多了,截掉一些内容或分成多次留言吧!"
response.end
end if
%>
<!-- #include file=database.asp -->
<%
ndatetime=now()
if name<>"" then name=replace(name,"'","''")
if title<>"" then title=replace(title,"'","''")
if homepage<>"" then homepage=replace(homepage,"'","''")
if mail<>"" then mail=replace(mail,"'","''")
if shu<>"" then shu=replace(shu,"'","''")
if go<>"" then go=replace(go,"'","''")
if up<>"" then up=replace(up,"'","''")
if address<>"" then address=replace(address,"'","''")
if guest<>"" then guest=replace(guest,"'","''")
con.Execute " INSERT INTO guest " _
& "(guesttime,name,title,homepage,product,mail,shu,go,up,address,guest) VALUES " _
& "('"&ndatetime&"', '" & name &"','" & title & "','"& homepage &"'," & Goods &",'" & mail &"','" & shu &"','" & go &"','" & up &"','" & address &"','" & guest &"');"
con.close
set con=nothing
guestAccussful()
%>
<p> <span class="p9"> <font color="#000000">【</font><a href="Goods.asp"><font color="#000000">返回预定表</font></a><font color="#000000">】
</font> </span>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -