Re-Posting Data

J

James Baker

I'm building a wizard-type site and I have a form that has a fair amount of
information being posted page to page until it reaches the end where it has
all of the data from Page 1 - Page 5.

For future reference more than anything...is there a way to post all of the
data coming from a previous page to the next page? Basically I just wrote
out all of the values I received on each page into hidden variables and then
posted that to the next page every time. Is there a simpler way?

Thanks,
James
 
K

Kris Eiben

No simpler way AFAIK. Of course, you can make it easy on yourself by
looping over the collection (warning: I'm coding from memory, syntax may
be off).
<%
for each i in request.form
response.write "<input type='hidden' name='" & i & "' value='" &
request.form(i) & "'>"
next
%>
 
J

Jeff Cochran

I'm building a wizard-type site and I have a form that has a fair amount of
information being posted page to page until it reaches the end where it has
all of the data from Page 1 - Page 5.

For future reference more than anything...is there a way to post all of the
data coming from a previous page to the next page? Basically I just wrote
out all of the values I received on each page into hidden variables and then
posted that to the next page every time. Is there a simpler way?

Session variables, store them in a database, build a single-page form,
etc.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top