[thelist] ASP - actions taken before redirect? (again)
spinhead
evolt at spinhead.com
Thu Sep 27 17:32:41 CDT 2001
I've got three pages:
Test has a textarea with contents. Its 'action' is
test2 which ostensibly collects the value of that textarea, then redirects
to
test3 which should display them. But it's blank.
Here are the pages.
==========================
<%
Option Explicit
Response.Buffer = "true"
dim strComments
strComments = "test comments"
%>
<html>
<head>
</head>
<body>
<form action="test1.asp" method="post">
<textarea><%=strComments%></textarea>
<input type="submit">
</form>
</body>
</html>
=========================
<%
Option Explicit
Response.Buffer = "true"
dim strComments
strComments = Request.Form("comments")
Response.Redirect("test2.asp")
%>
======================
<%
Option Explicit
Response.Buffer = "true"
dim strComments
strComments = Request.Form("comments")
Response.Write("comments = [[ " & strComments & " ]]<br>")
%>
=======================
What am I doing wrong?
spinhead
More information about the thelist
mailing list