ASP提交后清除问题

来源:百度知道 编辑:UC知道 时间:2024/05/05 15:43:03
为什么我按了提交按钮后,TEXT里输入的数据都清除了呢?什么原因?<input name="text2" type="text" id="text2" value="" size="20">
我的是SUBMIT啊,那应该怎末处理才能不清除呢?<tr>
<td height="29" align="center"><span class="STYLE5">弹性</span>:    

<input type="text" name="text1" id="text1" value="" size="20"> </td>
</tr>
function canshu()
<%

set fs=createobject("Scripting.FileSystemObject")
'set out=fs.createtextfile(server.MapPath("/")& "/abc.txt")
set out=fs.createtextfile("c:\abc.txt",true)

text1=request("text1")

out.writeline(""&text1&"")

out.close

%>
end function

<input type=&qu

把你的代码贴出来吧.那样才能帮你
你可以将参数返回如
在提交的页面中加入
text2=request("text2")
<input name="text2" type="text" id="text2" value="<%=text2%>" size="20">

在执行的文件中加入
text2=request("text2")
response.redirect "提交的文件.asp?text2="&text2