Re-Posting Data

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?

Advertisements

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
%>

"James Baker" <> wrote in message
news:...
> 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
>
>

Advertisements

On Tue, 13 Jul 2004 15:18:35 -0400, "James Baker"
<> wrote:
>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.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!