<!-- #include file="conn.asp" -->
<%
 title=trim(request.form("title"))
 ptime=trim(request.form("ptime"))
 add=trim(request.form("add"))
 content=trim(request.form("content"))
 pay=trim(request.form("pay"))
 cname=trim(request.form("cname"))
 iname=trim(request.form("iname"))
 tel=trim(request.form("tel"))
 email=trim(request.form("email"))
 web=trim(request.form("web"))

 if content="" then content="无" end if
 if pay="" then pay="面议" end if
 if iname="" then iname="-" end if
 if email="" then email="-" end if
 if web="" or web="http://" then web="-" end if
 set rs=server.createobject("adodb.recordset")
 sql="select * from fudao"
 rs.open sql,conn,1,3
 rs.addnew
 rs("title")=title
 rs("ptime")=ptime
 rs("add")=add
 rs("content")=content
 rs("pay")=pay
 rs("cname")=cname
 rs("iname")=iname
 rs("email")=email
 rs("tel")=tel
 rs("web")=web
 rs("pas")=0
 rs("hit")=0
 rs("vip")=0
 rs("ip")=Request.ServerVariables("REMOTE_HOST")
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
response.write"<SCRIPT language=JavaScript>alert('发布成功！');"
response.write"this.location.href='index.asp';</SCRIPT>" 
response.end
 conn.close
 set conn=nothing
%>
 