Passing variables

Results 1 to 4 of 4

Thread: Passing variables

  1. #1
    allyeric Guest

    Default Passing variables

    I do know how to pass variables many ways, using submit, and href. My problem now is passing variables without user interaction on that page. For example... on page1.asp I have a form. It gets submitted, and goes to page2.asp where the data gets entered into the database. I have moved all values into hidden text boxes on page2.asp I need to redirect to page3.asp and pass along the variables from the hidden fields. It works if I put response.redirect "page3.asp?UserID=2" but if I replace the number with the variable, eg response.redirect "page3.asp?UserID=<%=ID%>" it doesn&#039t work anymore. Thanks in advance for any help.

  2. #2
    allyeric Guest

    Default RE: Passing variables

    nevermind ... I just put all code from page2 on page3 .. duhh lol

  3. #3
    Join Date
    Dec 1969

    Default RE: Passing variables

    you have to pass in this way...<BR>response.redirect "page3.asp?UserID=" & ID & "&UsrNm=" & UsrName<BR><BR>i think this should work.<BR>let me know.

  4. #4
    allyeric Guest

    Default RE: Passing variables

    thanks for replying .. I realized also what I had forgotten (must be Friday!) It works fine now .. thanks

Posting Permissions

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