-
HELPPPPPP Guys....
I'm doin my project on ASP with VB Script as my basic scripting code.
My question is...
Can I pass the parameter between forms ???
Suppose, I have a variable at my 1st form...
Lets say...
Code:
Dim myJob
Dim myPack
myJob = "PT000628"
myPack = "A"
Response.Redirect "myProc.Asp"
Well... I'm gonna use the value of myJob and myPack variables, so, I've got to transfer them to myProc.Asp page.
Could anybody tell me, how to do it ???
I need it badly...
Thx a lot... I'm waiting forward to hear from you soon....
Cheers,
Wen Lie
-
You can use query strings to transfer values between two pages:
First Page:
Code:
Dim myJob
Dim myPack
myJob = "PT000628"
myPack = "A"
Response.Redirect "myProc.Asp?myJob=" & myJob & "&myPack" & myPack
Second Page:
Code:
Response.Write "Results from previous page:<BR>"
Response.Write "myPack: " & Request.QueryString("myPack") & "<BR>"
Response.Write "myJob: " & Request.QueryString("myJob") & "<BR>"
Regards,