dual submit form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

dual submit form

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

the 'resultant' page is on the SecPay server
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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?
Post Reply