Getting Forms Elements upon submitting form in next page??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • noumanislam
    New Member
    • Jan 2008
    • 1

    Getting Forms Elements upon submitting form in next page??

    Hello!

    this is Nouman. I am working on a form which takes input in text boxes compare those inputted values to a database table... this goes very well.. the problem comes when i want to show the textbox value on the next successful redirect page.. how do i carry those values to next page.... :s
  • stepterr
    New Member
    • Nov 2007
    • 157

    #2
    Originally posted by noumanislam
    Hello!

    this is Nouman. I am working on a form which takes input in text boxes compare those inputted values to a database table... this goes very well.. the problem comes when i want to show the textbox value on the next successful redirect page.. how do i carry those values to next page.... :s

    You can use the Request object.

    Code:
    <%=Request.Form("fieldnamefromform")%>

    Comment

    • jhardman
      Recognized Expert Specialist
      • Jan 2007
      • 3405

      #3
      Originally posted by stepterr
      You can use the Request object.

      Code:
      <%=Request.Form("fieldnamefromform")%>
      I don't think the request object will still contain the data after redirecting. I would suggest dumping all the data into session variables before redirecting:
      [code=asp]for each x in request.form
      session(x) = request.form(x)
      next[/code]then you can access that data in any page you visit. [code=asp]response.write session("textIn put1")[/code]Let me know if this helps.

      Jared

      Comment

      Working...