<!-- #include file="conn.asp" -->
<!-- #include file="cookies.asp" -->
<%
 pro_name=Trim(Request.Form("pro_name"))
 type_id=request.form("new_type_id")
 type_son_id=request.form("new_type_son_id")
 brand_id=request.form("new_brand_id")
 pro_url=Trim(Request.Form("pro_url"))
 keyword=Trim(request.form("keyword"))

 set rs=server.createobject("adodb.recordset")
 sql="select * from products"
 rs.open sql,conn,1,3
 rs.addnew
 rs("pro_name")=pro_name
 rs("type_id")=type_id
 rs("type_son_id")=type_son_id
 rs("brand_id")=brand_id
 rs("pro_url")=pro_url
 rs("keyword")=keyword
 rs("hit")=0
 rs("pas")=1
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
 conn.close
 set conn=nothing
 response.redirect "addok.asp"
%>
 
 