
Passing vairable values from page to page with VBScript
Here's a general suggestion for anyone using either POST or GET in the form method. You're using GET since you said you retrieve via Request.QueryString.
If the form method is POST, then in the receiving ASP page, Request.Form (or Request.Form() or Request.Form.Item(), all of which are perfectly legal) will give you all of the posted name/value pairs still encoded as one big string. On the redirect, you could simply append this to the url you are redirecting to.
...Redirect "thenext.asp" & "?" & Request.Form
If the form action is GET, the just pass on Request.QueryString
...Redirect "thenext.asp" & "?" & Request.QueryString
In the "thenext.asp", access it via Request.QueryString in both cases. The limits for POST and GET are different (GET has a limit of somewhere around 2K I think whereas POST does not). But if you aren't POSTing a large amount of data (or are using GET) then this might work for what you need.
--
Michael Harris
Hello all.
I'm relatively new to VBScript and to ASP, and have a question that I hope
someone out there can answer. I've got a form that users input data into
and I have an asp page that uses the Request.querystring function to read
those values and post them to a database. However, I would like to use
those same values in another page that users will be directed to using the
Response.redirect function. Is there a way to pass those variable values
collected to subsequent pages?
Any assistance would be appreciated.
Craig