|
-
Apr 19th, 2001, 05:17 PM
#1
Thread Starter
Hyperactive Member
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
-
Apr 19th, 2001, 08:51 PM
#2
Lively Member
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
-
Apr 19th, 2001, 09:02 PM
#3
Lively Member
-
Apr 21st, 2001, 05:47 AM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|