ASP里表单提交后怎么保留提交前写的数据

来源:百度知道 编辑:UC知道 时间:2024/06/28 00:00:40
在ASP表单里的输入框里输入了信息,我想在表单提交后还是提交到的本页面,同时表单的输入框里的信息还在并且可以更改,应该怎么做?
把输入框里输入了信息从提交页面在传回来不就可以了吗

这个具体应该怎么做?

你们说的我都试过了,提交到本页面以后,输入框里的信息就没有了,没有保留下来。

给你举一个简单的例子吧,假如说这个页面是:book.asp。
<html>
<style type="text/css">
<!--
.STYLE2 {font-size: 10pt; }
-->
</style>
</head>

<body>
<%
namer=request.form("name")
sex=request.form("sex")
age=request.form("age")
if trim(sex)="男" then
s1="checked"
else
s2="checked"
end if
if trim(age)="20-30" then
a1="selected"
else
a2="selected"
end if
%>
<form id="form1" name="form1" method="post" action="book.asp">
<table width="331" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="58" height="30"><div align="center" class="STYLE2">姓名</div>&