www.gusucode.com > 艺帆全站DIV+CSS体育用品公司网站源码 1.7.5源码程序 > i5808/add_newsfl_pass.asp

    <!--#include file="../Conn.asp" -->
<!--#include file="seeion.asp" -->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from news_fl"
rs.open sql,conn,1,3
title=request.form("title")
px_id=request.form("px_id")
keywords=request.form("keywords")
description=request.form("description")
if title=""  then 
response.Write("<script language=javascript>alert('分类名称不能为空!');history.go(-1)</script>") 
response.end 
end if
if px_id=""  then 
response.Write("<script language=javascript>alert('排序ID不能为空!');history.go(-1)</script>") 
response.end 
end if
IF not isNumeric(request("px_id"))  then
response.write("<script>alert("" 错误!排序ID必须为数字!""); history.go(-1);</script>")
response.end
end if
rs.addnew
rs("title")=title
rs("px_id")=px_id
rs("keywords")=keywords
rs("description")=description
rs.update
rs.close
set rs=nothing
conn.close
set rs=nothing
Response.Write "<script>alert('分类增加成功!');window.location.href='admin_newsfl.asp';</script>" 
%>