Results 1 to 4 of 4

Thread: Passing variables

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry

    Hello,

    I have a variable called "var1" which I defined in javascript in a page called "pageOne". I have a submit button on "pageOne" which posts the form with action "pageTwo"

    eg.. <form name="pageOne" id="pageOne" method="POST" action="pageTwo">

    How can I access this variable from "pageOne" in "pageTwo",

    Thanks,
    T

  2. #2
    Lively Member
    Join Date
    Jan 2001
    Posts
    72

    I'm not a guru but try this

    Put this in the form tags

    <input type ="hidden" name="MyVar" value="var1">


    then on page2, grab the variable


    passedVar = Request.Form("MyVar")

    p.s. if you used the "Get" method, use Request.QueryString instead.


    Hope this helps. And let me know if I am wrong.


    ttlai

  3. #3
    Lively Member
    Join Date
    Jan 2001
    Posts
    72

    oh, jscript?


  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343
    Thanks ttlai,

    This link DID help.

    T

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