刑警2010国语版 mp4:有关asp addnew

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/25 19:15:46
大家,麻烦了!首先麻烦到http://www.hongsanhuan.com/qunyou/link.asp
然后麻烦帮我看一下,这里面的该怎么写才对!
前台表格是:
<form action="reg.asp?action=add" method="post">
<input name="txt" type="radio" value="0"><span class="STYLE4">图片链接</span>
<input name="txt" type="radio" value="1"><span class="STYLE4">文字链接</span><br>
<span class="STYLE4">站名: </span>
<input name="name" type="text" maxlength="10">
<span class="STYLE4"><10个字节></span><br>
<span class="STYLE4">网址: </span>
<input name="url" type="text" value="http://" maxlength="50">
<span class="STYLE4"><50个字节></span><br>
<span class="STYLE4">LOGO: </span> <span class="STYLE4">
<input name="logo" type="text" maxlength="60">
<60个字节></span><br>
<span class="STYLE4">简介:</span>
<input name="title" type="text" maxlength="80">
<span class="STYLE4"><80个字节></span><br>
<input name="index" type="radio" value="1"><span class="STYLE4">首页链接</span>
<input name="index" type="radio" value="0"><span class="STYLE4">内页链接</span>
<input name="add" type="submit" id="add" value="申请">
</form>
然后有关的reg.asp是:
<%
If Request.QueryString("action")="add" then
title=Trim(request.form("title"))
url=Trim(request.form("url"))
logo=Trim(request.form("logo"))
txt=Trim(request.form("txt"))
fist=Trim(request.form("index"))
name=Trim(request.form("name"))

If name="" or note="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入网站名称,请返回检查!!"");history.go(-1);</script>")
response.end
end if

If title="" or note="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入简介,请返回检查!!"");history.go(-1);</script>")
response.end
end if

If url="" or link="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没有输入超连接,请返回检查!!"");history.go(-1);</script>")
response.end
end if

If logo="" or link="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没有输入图片连接,请返回检查!!"");history.go(-1);</script>")
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Link "
rs.open sql,conn,1,3
rs.addnew
rs("link_web")=name
rs("link_title")=title
rs("link_logo")=logo
rs("link_url")=url
rs("link_txt")=txt
rs("link_index")=fist
rs("link_admin")=0
rs.update
rs.Close
Set rs=Nothing
Response.write "<script language='javascript'>" & chr(13)
Response.write "alert('你的申请已经提交,请等待通过审核!');" & Chr(13)
Response.write "window.document.location.href='link.asp';"&Chr(13)
Response.write "</script>" & Chr(13)
Response.End
End if
%>
是否正确,哪里错了,请告诉一下!!我最想知道的是这个txt的复选按扭里的值怎么才能记录到数据里面!

这里rs.open sql,conn,1,3
最好改为rs.open sql,conn,3,3
好像没什么错误啊。。。

addnew语句看不出那里有错。