By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,445 Members | 3,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,445 IT Pros & Developers. It's quick & easy.

Passing value from page to page

P: n/a
Hi ,
I have a small problem.How can I pass value from form thru a few pages. I
try with hidden field but my second page just validate and redirect to other
one and when I use Request.Form("field") it's nothing coming back.
Any help please.
thanks
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hidden inputs should work if you're submitting a form. Can you post some
example code/html snippets of what is not working?

Ray at work

"viktor" <se*********@hotmail.com> wrote in message
news:Of**************@tk2msftngp13.phx.gbl...
Hi ,
I have a small problem.How can I pass value from form thru a few pages. I
try with hidden field but my second page just validate and redirect to other one and when I use Request.Form("field") it's nothing coming back.
Any help please.
thanks

Jul 22 '05 #2

P: n/a
And Request.QueryString("field") ??
Jul 22 '05 #3

P: n/a
Gazing into my crystal ball I observed "viktor"
<se*********@hotmail.com> writing in
news:Of**************@tk2msftngp13.phx.gbl:
Hi ,
I have a small problem.How can I pass value from form thru a few
pages. I try with hidden field but my second page just validate and
redirect to other one and when I use Request.Form("field") it's
nothing coming back. Any help please.
thanks


You can use hidden input, but make sure that you always pass the
information on. If you are doing a response.redirect, then you have to
include the information in a querystring, and use request.querystring to
retrieve the values.

For example:

<%
'This passes everything in the request.form collection to a querystring.
Redirect = "redirect.asp?"
For ix = 1 to Request.Form.Count
field = Request.Form.Key(ix)
InputValue = Request.Form.Item(ix)
redirect = redirect & field & "=" & inputvalue & "&amp;"
Next
response.redirect redirect
%>

If it's a small amount of data, you could probably use the session object,
but, if the user is not accepting cookies, you're SOL.
--
Adrienne Boswell
Please respond to the Group so others can share
Jul 22 '05 #4

P: n/a
thanks works fine
"Adrienne Boswell" <ar********@sbcglobal.net> wrote in message
news:Xn**********************************@64.164.9 8.6...
Gazing into my crystal ball I observed "viktor"
<se*********@hotmail.com> writing in
news:Of**************@tk2msftngp13.phx.gbl:
Hi ,
I have a small problem.How can I pass value from form thru a few
pages. I try with hidden field but my second page just validate and
redirect to other one and when I use Request.Form("field") it's
nothing coming back. Any help please.
thanks


You can use hidden input, but make sure that you always pass the
information on. If you are doing a response.redirect, then you have to
include the information in a querystring, and use request.querystring to
retrieve the values.

For example:

<%
'This passes everything in the request.form collection to a querystring.
Redirect = "redirect.asp?"
For ix = 1 to Request.Form.Count
field = Request.Form.Key(ix)
InputValue = Request.Form.Item(ix)
redirect = redirect & field & "=" & inputvalue & "&amp;"
Next
response.redirect redirect
%>

If it's a small amount of data, you could probably use the session object,
but, if the user is not accepting cookies, you're SOL.
--
Adrienne Boswell
Please respond to the Group so others can share

Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.