Results 1 to 9 of 9

Thread: Building Strings

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954

    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?

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can use Querystrings to pass it to the next page or hidden input fields to pass it along..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    How? I mean I have used the request.querystring method before but it only seems to get wha tis currently on that page..

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    Anyone?

  5. #5
    Hyperactive Member DKCK's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    329
    I don't know. I am having a similar problem. See my post "ASP redirect?"

  6. #6
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    You could use Session variables to store all strings and add them together on the last page.


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    I do not know anything about session variables, where would I start?

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954
    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?

  9. #9
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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")%>">
    .
    .
    .
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width