Forum Moderators: open

Message Too Old, No Replies

Programmatically submitting form data

please walk me through this

         

brickwall

8:13 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



Hello guys. I hope you can help me with this.

Iam trying to create a page to process payment for a certain payment processor. The payment processor has already provided a generic html form containing all the required information contained in hidden input fields. All I have to do is put this form in my page, let my customers click on submit and voila, payment is done.

The problem is, I want to submit this generic html form to the payment processor's server programmatically via classic ASP (VBScript). Payment processor receives the "POSTed" form as if from a normal page, and my customers accomplishes the payment process on the processor's website as usual.

I Googled the problem and read about how ServerXMLHttp can post data to a remote server to achieve this. But Iam really unfamiliar with it and I couldn't find a clear example of how to proceed so now Iam stuck.

Maybe you guys can walk me through this process. I'll be eternally grateful. =)

Thanks.

brickwall

8:44 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



Nevermind guys. I found the most simple solution.

Put the said html form into a simple page. Redirect to that simple page via Response.Redirect. Then Javascript submit that simple page (with the form) on pageload. Done.

Thanks anyway.