<!--#include file="conn.asp"--> <!--#include file="session.asp"--> <% action=request.form("action") %> <% dim fname dim fshou dim flei dim furl dim pic dim lei
fname=trim(request.Form("Fname")) fshou=trim(request.form("Fshou")) flei=trim(request.form("Flei")) furl=trim(request.form("Furl")) pic=trim(request.form("pic")) lei=trim(request.form("lei")) if request.Form("Fname")="" then response.write "<Script Language=JavaScript>alert('出错了!请输入动画名');history.back();</Script>" response.end end if if request.form("Fshou")="" then response.write "<script language=javascript>alert('出错了,请输入制作人');history.back();</script>" response.end end if if request.form("Flei")="" then response.write "<script language=javascript>alert('出错了,请选择类');history.back();</script>" response.end end if if request.form("Furl")="" then response.write "<script language=javascript>alert('url地址没有写');history.back();</script>" response.end end if if request.form("pic")="" then response.write "<script language=javscript>alert('图片地址不能为空');hsitory.back();</script>" response.end end if set rs=server.CreateObject("adodb.recordset") sql="insert into flash(name,shuo,lei,url,pic,jei) values('"&fname&"','"&fshou&"','"&flei&"','"&furl&"','"&pic&"','"&jei&"',)" conn.execute(sql) response.write "<script language=javascript>alert('添加成功^-^反回继续添加');location.href='index.htm';</script>" response.end %> 谁能帮我看看啊`~