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

Passing Data with Hidden Fields

P: n/a
Hello.

I am creating a form that has 5 steps/pages. Each page contains about
20 fields. But I don't want to write them until they submit on the
last page. I figured out that I can use hidden fields to carry the
data from the previous forms forward. If should bascially work like
this:

Page 1 Page 2 Page 3 Page 4 Page 5 Page 6
20 Fields 20 Fields 20 Fields 20 Fields 20 Fields 100 Hidden
20 Hidden 40 Hidden 60 Hidden 80 Hidden Write to DB

But the problem I am having is when I submit page 4 page 5 won't load.
No error, it just won'tload. It seems to be overburdened. Is there a
max on the number of fields it can pass? Is there a better way to go
about doing this that someone can suggest? Or a suggestion that
someone can make to fix this problem?

Thanks in advance.
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 28 Nov 2003 11:10:11 -0800, fi**********@hotmail.com (Ryann) wrote:
Hello.

I am creating a form that has 5 steps/pages. Each page contains about
20 fields. But I don't want to write them until they submit on the
last page. I figured out that I can use hidden fields to carry the
data from the previous forms forward. If should bascially work like
this:

Page 1 Page 2 Page 3 Page 4 Page 5 Page 6
20 Fields 20 Fields 20 Fields 20 Fields 20 Fields 100 Hidden
20 Hidden 40 Hidden 60 Hidden 80 Hidden Write to DB

But the problem I am having is when I submit page 4 page 5 won't load.
No error, it just won'tload. It seems to be overburdened. Is there a
max on the number of fields it can pass? Is there a better way to go
about doing this that someone can suggest? Or a suggestion that
someone can make to fix this problem?

Thanks in advance.


If it is convenient, you could build up one hidden variable for the
entire collection of 2 fields with a seperator. Then you can use split
method to get the information back..

Page 1
P1ITM1
P2ITM2
P3ITM3

Page 2
(hidden) P1 = ITM1 + "|" + ITM2 "|" + ITM3...
P2ITM1
P2ITM2
....
Jul 19 '05 #2

P: n/a
Hi,

Alternatively you can write the data into a temporary text file and append it as you go on through the form. At the last form read all the values along with the vales of the last form and put it into the database. Just make a format for the text file so when you pick-up the data it is easier for you.

Regards,
Bhaskardeep Khaund

Jul 19 '05 #3

P: n/a
I have a form that passes hidden fields across 5 pages before writing
them to the DB on page 6. I thought maybe I was overburdening it in
some way by passing 100 hidden fields. When I originally posted this
problem I was working at a workstation with IE 6.0 SP1 installed. The
application hangs when loading some forms.

I worked on it from another location where I had IE 5.5 installed and
I can complete the forms all the way to step6.asp and write the the
database. Here is an outline of the behavior:

Windows XP - IE 6.0 SP1 : Hangs on Step5.asp
Windows XP - IE 6.0 SP1 (alternate location): Hung on Step3.asp
(yesterday) Hangs on Step5.asp (Today)
Windows 98 - IE 6.0 SP1: Hangs on Step5.asp
Windows 2000 - IE 5.5: Can complete all forms
Windows NT 4.0 - IE 5.0: Can complete all forms

Also if I load the page directly using the path instead of opening it
from the form submit on step4.asp the page loads corectly.

If anyone has encountered these problems or has some idea on how to go
about optimizing my code to avoid them I would appreciate feedback.

Thank you.

************************************************** ****************************
"Bhaskardeep Khaund" <bhaskar 99*@hotmail.com> wrote in message news:<ee**************@TK2MSFTNGP10.phx.gbl>...
Hi,

Alternatively you can write the data into a temporary text file and
append it as you go on through the form. At the last form read all the
values along with the vales of the last form and put it into the
database. Just make a format for the text file so when you pick-up the
data it is easier for you.

Regards,
Bhaskardeep Khaund

--

Jul 19 '05 #4

P: n/a
I have encountered this in two situations:

When using popups and when dealing with multiple pages. To resolve the
situation I changed the following:

Request("field") to Request.QueryString("field")

and when parsing the info to be passed to the next page I changed:

"page.asp?field=" & strVal to "page.asp?field=" &
Server.URLEncode(strVal)
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.