<!--#include file="../conn2.asp"-->
<!--#include file="set.asp"-->
<%
logo=request.form("logo")

bidname=request.form("bidname")
bidinfo=request.form("bidinfo")
px=request.form("px")
rzh=request.form("advshow")
username=request.form("username")
if bidname="" or bidinfo="" then
response.write"<script language='javascript'>alert('请填写完整信息！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
if not IsNumeric(px) then
response.write"<script language='javascript'>alert('排序必须为数字！')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from board "
rs.open sql,conn,3,2
rs.addnew
rs("bidname")=bidname
rs("logo")=logo
rs("px")=px
rs("bidinfo")=bidinfo
rs("rzh")=rzh
rs("username")=username
rs.update
set rs=nothing
set conn=nothing
response.redirect "boardman.asp"
%>