%if request("hidden")="add" then
school=saferequest("school")
name=saferequest("name")
xb=saferequest("xb")
tel=request("tel")
logo=request("logo")
content=saferequest("content")
nums=saferequest("nums")
uid=saferequest("uid")
tjr_uid=saferequest("tjr_uid")
if len(school)=0 then
response.write("您得先选择驾校!")
response.end
end if
if len(name)=0 then
response.write("姓名不能为空!")
response.end
end if
if len(tel)=0 then
response.write("手机不能为空!")
response.end
end if
'response.write logo
'response.end
set rs=server.createobject("adodb.recordset")
rs.open "select * from auto_jiaxiao where name='"&name&"' and tel='"&tel&"' and day(uptime)=day(getdate()) order by id desc",connche,1,3
if not rs.eof then
response.write("请不要重复提交!如要修改,可第二天重新提交。")
response.end
end if
rs.close
connche.execute "insert into auto_jiaxiao(school,uid,name,xb,tel,tjr_uid,nums,content,uptime,logo,zhangtai) values('"&school&"','"&uid&"','"&name&"','"&xb&"','"&tel&"','"&tjr_uid&"',"&nums&",'"&content&"',getdate(),'"&logo&"','')"
response.write("提交成功,江苏汽车网会尽快与您联系的!")
connche.close
end if%>