<!-----------------------------此页代码参照user_csAdd_fun.asp页面--------------------------->
<!--#include file="../conn.asp"-->
<%
truename         = trim(request.form("truename"))				
phone      		 = trim(request.form("phone"))				
carsort          = trim(request.form("carsort"))
fqyear      	 = trim(request.form("fqyear"))				
firstpay         = trim(request.form("firstpay"))

'验证
if truename = "" then call wrong("请填写您的真实姓名！")
if phone = "" then call wrong("请填写您的联系电话或手机信息！")
if carsort = "" then call wrong("请填写您选择的车型！")
if fqyear = "" then call wrong("请填写分期付款年限！")
if firstpay = "" then call wrong("请填写首付比例！")

'================================================
dim sql
Set InsertCursor = Server.CreateObject("ADODB.Recordset")

InsertCursor.Open "SELECT top 1 * FROM fqinfo order by id desc",conn,1,3
InsertCursor.addnew

InsertCursor("truename")     = truename
InsertCursor("phone") 		 = phone	
InsertCursor("carsort") 	 = carsort 
InsertCursor("fqyear") 		 = fqyear	
InsertCursor("firstpay") 	 = firstpay
InsertCursor("ifchuli") 	 = "no"

InsertCursor.Update
InsertCursor.close
conn.close
set InsertCursor=nothing
set conn=nothing

response.write "<script>alert('提交成功！我们的工作人员会尽快与您取得联系！');window.open('index.asp','_self')</script>"

%>