Page 1 of 1

dual submit form

Posted: Fri Apr 13, 2007 9:36 am
by malcolmboston
Im wondering if its possible to submit the same form to 2 different pages, if it requires javascript so be it.

I basically need to do this because its for a payment processing page, the page needs to be sent to the secPay server however i also need some details that the user has filled in so i want it to also submit to another page.

Is this possible? i really do not want to add another page to do it the usual way.

Thanks, Mal

Posted: Fri Apr 13, 2007 9:49 am
by feyd
Submit the data to your server. On the resultant page, autosubmit (or proxy it) to the other page.

Unless you do it with Ajax, there's no way to do it on the client-side alone.

Posted: Fri Apr 13, 2007 9:50 am
by malcolmboston
the 'resultant' page is on the SecPay server

Posted: Fri Apr 13, 2007 10:06 am
by JayBird
Payment processors normally allow you to send whatever data you want to them, which gets returned to you on the success page. Could you not do that?