<!--#include file="conn.asp"--> <!--#include file="session.asp"--> <% ID=request("ID") set rs=server.createobject("adodb.recordset") if request.Form("Fname")="" then response.write "<Script Language=JavaScript>alert('出错了!请输入动画名');history.back();</Script>" response.end end if if request.form("Fshuo")="" 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
sql="update flash(name,shuo,lei,url,pic,jei) values('"&fname&"','"&fshuo&"','"&flei&"','"&furl&"','"&pic&"','"&jei&"')" conn.execute(sql) conn.close set conn=nothing response.write "<script language=javascript>alert('修改成功^-^反回继续添加');location.href='index1.asp';</script>" response.end %>