<%
dim name,company,tel,email,website,question,comment,ip,submit
name = request.form("name")
company = request.form("company")
tel = request.form("tel")
email = request.form("email")
website = request.form("website")
question = request.form("question")
comment = request.form("comment")
ip = request.servervariables("http_x_forwarded_for")
if ip = "" then ip = request.servervariables("remote_addr")
submit = 0
if name<>"" then
strq = "insert into apply(name,company,tel,email,website,question,comment,ip,createdate) values('" & (formatstr(name)) "','" & (formatstr(company)) "','" & (formatstr(tel)) "','" & formatstr(email) "','" & (formatstr(website)) "','" & formatstr(question) "','" & formatstr(comment) & "','" & formatstr(ip) & "','" & now() & "')"
conn.execute strq
submit = 1
end if
function formatstr(str)
if not isnull(str) then
formatstr = replace(str,"'","''")
else
formatstr = ""
end if
end function
%>
tidemedia-凯发app官方网站