📄 save_info.asp
字号:
<%@ codepage ="936" %>
<!--#include file="dbconn2.asp"-->
<!--#include file="config.asp"-->
<%
dim bighy
dim lithy
dim showname
dim jgsm
dim mmfx
dim period
dim content
dim linkman
dim address
dim email
dim phone
dim fax
dim postcode
dim web
dim city
dim country
dim rs
dim sql
bighy=request("bighy")
lithy=request("lithy")
showname=request("showname")
jgsm=request("jgsm")
mmfx=request("type")
period=request("period")
content=request("content")
linkman=request("linkman")
company=request("company")
address=request("address")
email=request("email")
phone=request("phone")
country=request("country")
if trim(request("postcode"))="" then
post="空"
else
post=request("postcode")
end if
if trim(request.form("fax"))="" then
fax="空"
else
fax=request.form("fax")
end if
if trim(request.form("web"))="" then
web="空"
else
web=request.form("web")
end if
city=request.form("city")
set rs=server.createobject("adodb.recordset")
sql="select * from info where company='"&request("company")&"'and showname='"&request("showname")&"'"
rs.open sql,conn,1,3
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('对不起,您已经提交过此信息!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
else
rs.addnew
rs("sortid")=bighy
rs("typeid")=lithy
rs("showname")=showname
rs("jgsm")=jgsm
rs("type")=mmfx
rs("period")=period
rs("content")=content
rs("linkman")=linkman
rs("company")=company
rs("address")=address
rs("mail")=email
rs("phone")=phone
rs("fax")=fax
rs("postcode")=post
rs("country")=country
rs("web")=web
rs("city")=city
rs("gsid")=session("id")
rs("dateandtime")=date()
rs.update
rs.close
set rs=noting
conn.close
set conn=nothing
%>
<%end if%><head>
<STYLE type=text/css>
TD {
COLOR: #000; FONT-FAMILY: 宋体; FONT-SIZE: 12px
}
.GR {
COLOR: #666
}
</STYLE>
</head>
<meta HTTP-EQUIV=refresh Content='1;url=sj_edit.asp#a'>
<BODY text=#000000 leftMargin=0 topMargin=0
marginheight="0" marginwidth="0">
<table border="0" cellspacing="0" width="100%" cellpadding="0" height="418" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" height="418" valign="middle" align="center">
<IMG src="images/success.gif"><br><br>
<br>
<font color="#000000" class=f12 style="font-size: 10.5pt"><b>恭喜您,您的信息已经发布成功!<a href="sj_edit.asp#a"><font color="#FF6600">返回</font></a></b></font><p> </td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -