How can I retain form values after action goes to an external site?

I am trying to setup a form where it uses an external site from Bank of America for payment but at the same time I want it to retain other values from the same form at time of submit so that it can be included in a message after success or failure of payment through the Bank of America site.  What way can I accomplish this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HainKurtSr. System AnalystCommented:
I could not get what are you trying to do,
but you can use session...
or put all values into hidden variebles...
you can store them in cookies...
you can use database to store them...
If you're not using a dynamic script like PHP or ASP your best method would be using a JavaScript to store the form values in a Cookie and then you can read them back again

A sample script and example can be found here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
accucomAuthor Commented:
I can actually use PHP or classic ASP if there are better ways of storing fields for later use.

@HainKurt: The form I have for submitting contains some fields that the Bank of America's gateway only cares about (ie. name, email) while we have other fields for our own information (ie. proprietary information for company purposes).  We want to go directly to the payment site then when it returns back to my site to either the success or failure page is where I want to incorporate the other fields in a message body of an email to be sent out.

@remorina: thanks for the link as I hope it can accomplish what we what unless there's a better alternative that I can work with.
accucomAuthor Commented:
Now that I got a chance to review the javascript form saver code, I believe this is what I want it to achieve as follows:

When the submit button gets pressed and is about to exit my site for the gateway, I want to perform a BODY onUnLoad where it saves all the fields in the form to a cookie to retrieve when the gateway returns to my site on either a confirmation success or failure page which is currently using classic ASP code to generate an email message containing my original form's information.  I believe what I need to do is when it hits the success or failure page, I need it to retrieve all the form values not to repopulate the form but to populate the message that gets sent when I use the sendmail feature.  The part I am trying to figure out is how in classic ASP can I retrieve my saved cookie values, or will I need to use Javascript to retrieve first or to directly use ASP for that or something to that effect.
accucomAuthor Commented:
At least the code snippet accomplished what I asked for in the first place.  Not to figure out how classic ASP gets form values which I'll make hidden so it can finish the purpose.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.