<!--#include file="../conn2.asp"-->
<!--#include file="set.asp"-->
<%
bid=request.form("bid")
method=request.form("method")
logo=request.form("logo")
bidname=request.form("bidname")
bidinfo=request.form("bidinfo")
px=request.form("px")
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


select case method
case "save"

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.update

case "edit"
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM board where bid="&bid 
rs.Open sql,conn,3,2
rs("bidname")=bidname
rs("logo")=logo
rs("px")=px
rs("bidinfo")=bidinfo
rs.update
end select

set rs=nothing
set conn=nothing

%>