multi part form

They have: 7 posts

Joined: Oct 2001

I want to complete a form in two parts with the first part sent to the second page as a cookie and the the rest of the form is completed. What I need to know is how to process both parts back to my email, up to now all I'm getting is the information from the second part and not the information sent there from the first page.
Hope this makes sense.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi kevinb,

Have you tried assigning the first page's field values to hidden fields within the second page form?

Vinny

They have: 7 posts

Joined: Oct 2001

I have done that but I think it may be when all the information passes through the cgi script it gets lost there. Could that be the cause, do I need to add something to the cgi script to make it send me the cookie information as well.

Thanks for your help

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi kevinb,

Before everyone gets into a guessing game....

Quote: first part sent to the second page as a cookie

cookies are not 'sent'; they are written to and retrieved from the user's computer, so there are no cgi/server applications involved.

1) are you actually writing a cookie in the first page
2) are you retrieving it in the second page?
3) if the above is true, you should be able to simply say something like: hiddenField1 = cookieData[0];

How many fields are we talking about? What does your 1st page form tag look like? How are you transferring control to the the second page? What does its form tag look like?

Vinny

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.