<!--#include file="conn.asp"-->
<%act=request("act")
'=======添加管理员========

if act="addadmin" then
name = Request.Form("name")
admintype= Request.Form("admintype")
sql="insert into admin(name,type) values('"&name&"','"&admintype&"')"
conn.execute(sql)
'response.write "<script>alert('祝你生了个大胖管理员。');</Script>"
response.write "祝你生了个大胖管理员。"
response.redirect "manage.asp"
else
response.write "生产失败"
end if
%>