Re: Passing value from page to page
From: Adrienne Boswell (arbpen2003_at_sbcglobal.net)
Date: 12/07/04
- Next message: fab: "WinCE 4.20, SSL and Content-Disposition"
- Previous message: Gérard Leclercq: "Re: Passing value from page to page"
- In reply to: viktor: "Passing value from page to page"
- Next in thread: viktor: "Re: Passing value from page to page"
- Reply: viktor: "Re: Passing value from page to page"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 07 Dec 2004 17:21:22 GMT
Gazing into my crystal ball I observed "viktor"
<serguienkov@hotmail.com> writing in
news:OfFI9zH3EHA.1124@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 & "&"
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
- Next message: fab: "WinCE 4.20, SSL and Content-Disposition"
- Previous message: Gérard Leclercq: "Re: Passing value from page to page"
- In reply to: viktor: "Passing value from page to page"
- Next in thread: viktor: "Re: Passing value from page to page"
- Reply: viktor: "Re: Passing value from page to page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|