28,391
社区成员
发帖
与我相关
我的任务
分享
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
option explicit
response.buffer=false
%>
<!--#include file="inc/checksqlx.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="Admin/inc/config.asp" -->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/GetDate.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%
Dim Tname,remark,pro,tel,mianji,yusuan,shejishi,yaoqiu,addtime,loupan,addr
Dim Sql,FoundErr,SuccessMsg,ErrMsg,GetCode,ip,email
Dim CheckCode
Tname=ReplaceBadChar(Trim(Request.Form("Tname")))
if Tname="" then
ErrMsg=ErrMsg & "您的姓名不能为空!\n"
FoundErr=True
end if
email=ReplaceBadChar(Trim(Request.Form("email")))
tel=ReplaceBadChar(Trim(Request.Form("tel")))
if tel="" then
ErrMsg=ErrMsg & "您的手机号不能为空!\n"
FoundErr=True
elseif not isnumeric(tel) or len(tel)<>11 or left(tel,1)<>"1" then
ErrMsg=ErrMsg & "手机号码格式不正确!\n"
FoundErr=True
end if
pro=ReplaceBadChar(Trim(Request.Form("pro")))
addr=ReplaceBadChar(Trim(Request.Form("addr")))
if addr="" then
ErrMsg=ErrMsg & "建筑面积不能为空!\n"
FoundErr=True
end if
loupan=ReplaceBadChar(Trim(Request.Form("loupan")))
if loupan="" then
ErrMsg=ErrMsg & "楼盘名称不能为空!\n"
FoundErr=True
end if
IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If IP = "" Then IP = Request.ServerVariables("REMOTE_ADDR")
addtime=Now()
if FoundErr=True then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('"&ErrMsg&"');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
Set rs=Server.CreateObject("ADODB.Recordset")
Sql="Select * From orderlist3 "
rs.Open Sql,Conn,1,3
rs.AddNew
rs("pro")=pro
rs("Tname")=Tname
rs("email")=email
rs("tel")=tel
rs("addr")=addr
rs("loupan")=loupan
rs("addtime")=addtime
rs("IP")=IP
rs.UpDate
Rs.close
Set Rs=Nothing
Call CloseConn()
response.Write("<script language='javascript'> alert('提交成功,感谢您的支持,我们将尽快与您取得联系。'); location.href='javascript:history.back()'</script>")
%>