Link to home
Start Free TrialLog in
Avatar of accucom
accucom

asked on

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?
Avatar of HainKurt
HainKurt
Flag of Canada image

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...
ASKER CERTIFIED SOLUTION
Avatar of remorina
remorina
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of accucom
accucom

ASKER

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.
Avatar of accucom

ASKER

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.
Avatar of accucom

ASKER

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.