做了一个简单的asp留言本,有点错误谁能帮我指点一下。

来源:百度知道 编辑:UC知道 时间:2024/05/15 09:35:11
留言页面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<div align="center">
<p> </p>
<p>留言板</p>
<form id="form1" name="form1" method="post" action="Untitled-2.asp">
<label>留言内容
<textarea name="text" cols="30" rows="10"></textarea>
</label>

我怎么看着,应该是没有显示出来吧?按理已经保存。
strsql="select * from pinglun" ,不知你有没空格的。
显示页=====

<div align="center"><%i=1
set showpinglun=conn.execute("select*from pinglun order by id desc")
do while not showpinglun.eof
Loop%> <%=rs("text")%>
<%=rs("oldtime")%>

改========
<div align="center"><%i=1
set showpinglun=conn.execute("select * from pinglun order by id desc")
do while not showpinglun.eof
response.write showpinglun("text")
response.write showpinglun("oldtime")
showpinglun.movenext
Loop

接收那个页面用下面的插入!
exec="insert into 表名(字段)values('"变量"')"