473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Passing value from page to page

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
4 1479
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
And Request.QueryString("field") ??
Jul 22 '05 #3
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
4
by: bateman | last post by:
Hi, I have a rather puzzling problem, have asked the ASP experts at work with no joy and its driving me mad! I'll explain the steps in more detail below but the general problem is I am manually...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
1
by: Kevin Lyons | last post by:
Hello, I am trying to get all of my form elements passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html to the following URL:...
0
by: Rico Singleton | last post by:
I currently have an asp page that contains a simple form and a few hidden fields. One of those hidden fields retrieves a value passed in when a link is clicked that passes a value (i.e...
5
by: Steve | last post by:
Hi, I currently have a problem passing a variable value from one page to another. Once a form submit button is pressed java pops up a window and displays some information. The problem being is...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
1
by: gajahkursi | last post by:
<?php // Connect database include("conf.php"); $child= $_POST; // Get all records in all columns from table and put it in $result. $result=mysql_query("SELECT * FROM parent WHERE child=...
5
by: aelred | last post by:
I have a web page where a member can open up a chat window (child window) with another member. - From there the member can also navigate to other web pages. - From other pages in the site, they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.