-
Building Strings
OK I am using an option box to build a string. What I am doing is asking a question, then the user chooses what they want, then clicks on the submit button. It goes to another page and retrieves that string by using the request.querystring method. I then do they same thing on the next page in which it gets another string using the same method. My question is how do you keep that string value form the first page?
-
You can use Querystrings to pass it to the next page or hidden input fields to pass it along..
-
How? I mean I have used the request.querystring method before but it only seems to get wha tis currently on that page..
-
-
I don't know. I am having a similar problem. See my post "ASP redirect?"
-
You could use Session variables to store all strings and add them together on the last page.
Chris
-
I do not know anything about session variables, where would I start?
-
OK lets say that I have some syntax such as:
<%
strSubject = request.QueryString("Subject")
Session("Subject") = strSubject
<%
Does this mean that I have the value of strSubject stored in a session object called Subject.. If so how do I retireive that on the next page?
-
You only read part of my reply.
Querystrings are only part of the solution. You have to put hidden text fields on the next page and write the querystring data from the previous page into it so it gets passed in the new page's querystrings:
Code:
Page2:
.
.
.
<input type=hidden name=txtFromPage1 value="<%=Request.Querystring("DataFromPage1")%>">
.
.
.
Page3:
.
.
.
<input type=hidden name=txtFromPage1 value="<%=Request.Querystring("txtFromPage1")%>">
<input type=hidden name=txtFromPage2 value="<%=Request.Querystring("DataFromPage2")%>">
.
.
.