msuryadarma
Oct 2nd, 2000, 10:51 AM
Hi all, I'm trying to learn vbscript now that I understand vb.
I have 2 files, 1.html and 2.asp.
I have a textbox and a cmdbutton in 1.html. I want to type "abc" in the textbox, press the cmbutton, then it opens up 2.asp and displays "abc" there.
What I have done is, dim a variable TextTest in 1.html. Cmbutton_OnClick, I put in the value of the textbox into TextTest, and navigate "2.asp".
In the form field, I have
<form NAME="frmOpening" , action="2.asp">
NOw the big question is, how do I refer back to TextTest in 2.asp?? In vb I can just put set newVar = frmOpening.TextTest. But how do I do it in vbs since there are 2 different files?
I guess essentially my question is, how do I carry over a variable value to another page.
BTW, I am using Personal Web Server under Win95.
Thanks a lot.
Martin
I have 2 files, 1.html and 2.asp.
I have a textbox and a cmdbutton in 1.html. I want to type "abc" in the textbox, press the cmbutton, then it opens up 2.asp and displays "abc" there.
What I have done is, dim a variable TextTest in 1.html. Cmbutton_OnClick, I put in the value of the textbox into TextTest, and navigate "2.asp".
In the form field, I have
<form NAME="frmOpening" , action="2.asp">
NOw the big question is, how do I refer back to TextTest in 2.asp?? In vb I can just put set newVar = frmOpening.TextTest. But how do I do it in vbs since there are 2 different files?
I guess essentially my question is, how do I carry over a variable value to another page.
BTW, I am using Personal Web Server under Win95.
Thanks a lot.
Martin