求一个简单的asp留言本代码

无需注册,无需验证码,用户留言时只需输入用户名(除“管理员”“admin”不能使用其他都可以用)和留言内容即可发表;后台管理只需提供删除留言功能;使用access数据库(... 无需注册,无需验证码,用户留言时只需输入用户名(除“管理员”“admin”不能使用其他都可以用)和留言内容即可发表;后台管理只需提供删除留言功能;使用access数据库(能不用数据库当然更好啦);代码能嵌入本人网站页面,能防注入当然更好啦。就这些要求。参考图片 展开
 我来答
沧海雄风2009
2011-06-08 · TA获得超过1.1万个赞
知道大有可为答主
回答量:8525
采纳率:79%
帮助的人:2995万
展开全部
给六邮箱啊
更多追问追答
追问
sgyma@126.com
追答
已发送 满意请给记得给分
seekworm
2011-06-08 · TA获得超过521个赞
知道小有建树答主
回答量:765
采纳率:0%
帮助的人:310万
展开全部
这种ASP的留言本网上源代码有好多,给你推荐一个:http://down.chinaz.com/soft/27064.htm
追问
这个我也试过了,不能添加留言啊,还是我哪里搞错了!?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
我叫余暖暖
2011-06-08 · TA获得超过1041个赞
知道小有建树答主
回答量:849
采纳率:0%
帮助的人:899万
展开全部
http://blog.ywask.com/post/55.html 最简单的ASP留言版_简洁的ASP留言本_代码共享
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友0a43424
2011-06-08 · TA获得超过6873个赞
知道大有可为答主
回答量:6716
采纳率:50%
帮助的人:6284万
展开全部
add.asp
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="conn.asp"-->
<%
lytitle=request.Form("title")
lyauthor=request.Form("author")
lycontent=request.Form("content")
if lytitle="" then
%>
<script language="javascript">
alert('留言标题不能为空白!!!');
window.navigate('message.asp');
</script>
<%
end if

if lycontent="" then
%>
<script language="javascript">
alert('留言内容不能为空白!!!');
window.navigate('message.asp');
</script>
<%
else
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from liuyan"
rs.open sql,conn,2,3
rs.addnew
rs("title")=lytitle
rs("author")=lyauthor
rs("content")=lycontent
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<script language="javascript">
alert('留言添加完成!!!');
window.navigate('message.asp');
</script>
<%
end if
%>

message.asp
<form id="form1" name="form1" method="post" action="add.asp">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr class="STYLE3">
<td colspan="2"><span class="STYLE7">我也要添加留言!</span></td>
</tr>
<tr class="STYLE3">
<td width="14%" class="STYLE5">留言标题:</td>
<td width="86%"> <label class="STYLE3">
<input name="title" type="text" id="title" size="20" maxlength="20" />
</label> </td>
</tr>
<tr class="STYLE3">
<td class="STYLE5">留言内容:</td>
<td> <label>
<textarea name="content" cols="35" rows="5" id="content"></textarea>
</label> </td>
</tr>
<tr class="STYLE3">
<td class="STYLE5">留言用户:</td>
<td> <label>
<input name="author" type="text" id="author" size="20" maxlength="20" />
</label> </td>
</tr>
<tr>
<td colspan="2"><span class="STYLE2">
<label>

<div align="center">
<input type="submit" name="submit" id="submit" value="提交" />
    
<input type="reset" name="submit1" id="submit1" value="重填" />
</label>
</div> </td>
</tr>
</table>
</form>
追问
数据库表单能写一下吗?

参考资料: sername

已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式