⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addad.asp

📁 大家好
💻 ASP
字号:
<%@ LANGUAGE="VBSCRIPT"%>
<%

	function fixQuotes(theString)
			fixQuotes=Replace(theString,"'","''")
	end function
	Set con=Server.CreateObject("ADODB.Connection")
	con.Open Application("DBCon_ConnectionString")
	strSql="INSERT guanggao VALUES('"+fixquotes(server.htmlencode(request.form("userid")))+"','"+fixquotes(server.htmlencode(Request.Form("country")))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("city"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("danwei"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("daili"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("connection"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("address"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("zipcode"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("telphone"))))
	strSql=strSql+"','"+fixQuotes(server.htmlencode(TRIM(Request.Form("mail"))))
	strSql=strSql+"','"+replace(fixQuotes(server.htmlencode(trim(Request.Form("type1")))),vbcrlf,"<br>")
	strSql=strSql+"','"+Request.Form("class1")
	strSql=strSql+"','"+Request.Form("class2")
	strSql=strSql+"',getdate(),'0')"	
	insertnum=0
'response.write strsql&"<br>"
'response.end
	Set rs=con.Execute(strSql,insertnum)
	if insertnum=1 then
		response.write "提交成功!<br>"
		response.write "<a href='"&"adinput.htm"&"'> 返回提交页面!</a>"
	else
		response.write "提交失败!<br>"
		response.wirte "<a href='"&"vbscript:history.go(-1)&"'> 返回提交页面!</a>"
	end if
%>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF">

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -