菜鸟的问题,如何在提交后,在当前页面下显示表单的内容

天边一只鼠 2004-07-15 01:06:02
如题
...全文
220 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
linda7733 2004-07-15
  • 打赏
  • 举报
回复
表单的action=本网页的名子,也就是提交到自己,这样就可以了
天边一只鼠 2004-07-15
  • 打赏
  • 举报
回复
兄弟,偶手头没书啊
jervis82 2004-07-15
  • 打赏
  • 举报
回复
晕。。。这个问题应该看书不应该问。
任老先生 2004-07-15
  • 打赏
  • 举报
回复
判断了
if=提交
....

end if
input1.value=request.form("input1")
input2.valuerequest.form("input")
input3.value....
qxceo 2004-07-15
  • 打赏
  • 举报
回复
////////给你参考///////


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言板</title>
</head>
<body>
<%
set conn=server.createobject("ADODB.connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db.mdb")
conn.open connstr
set rs = server.createobject("adodb.recordset")
sql="select * from book order by no DESC"
rs.open sql,conn,3,3
%>
<table width="560" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999">
<%while not rs.eof%>
<tr bgcolor="#FEF3E0">
<td>编号:<%=rs("no")%></td>
<td bgcolor="#FEF3E0">姓名:<%=rs("name")%></td>
<td>时间:<%=rs("time")%></td>
</tr>
<tr bgcolor="#EEF7FD">
<td colspan="3">内容:<%=rs("say")%><br><br>
</td>
</tr>
<%
rs.MoveNext
wend
%>
</table><BR>
<p>
</p>
<form action="update.asp" method="post" name="form" id="form">
<table width="360" border="0" align="center" cellpadding="0" cellspacing="6" bgcolor="#EEF7FD">
<tr align="center" bgcolor="#FEF3E0">
<td colspan="2"><font color="#FF0000">发表留言</font></td>
</tr>
<tr>
<td bgcolor="#FEF3E0">姓名:</td>
<td> <input name="name" type="text" id="name" size="12"> </td>
</tr>
<tr>
<td bgcolor="#FEF3E0">内容:</td>
<td><textarea name="say" cols="38" rows="6" id="say"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
天边一只鼠 2004-07-15
  • 打赏
  • 举报
回复
我的意思是,在A.ASP提交后,即时的在A.ASP当前页下显示表单的内容.
skyboy0720 2004-07-15
  • 打赏
  • 举报
回复
提交到本页就可以了啊!
cuixiping 2004-07-15
  • 打赏
  • 举报
回复

<form>
<input name="userid" value="<%=request("userid")%>">
</form>
wsdzmhongm 2004-07-15
  • 打赏
  • 举报
回复

a.asp
..
<form method=post axction="b.asp">
<input type="text" name="txt1">
<input type="text" name="txt2">
</form>
--------------------------提交

b.asp
<%
response.write request.form("txt1")
response.write request.form("txt2")
%>
stefli 2004-07-15
  • 打赏
  • 举报
回复
提交后:
<%
Response.Write("<Script>history.back(-1);</Script>")
%>

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧