PDA

View Full Version : How could I make a form with 2 different actions?


Lotz
08-07-03, 11:17
Hello,

I'm using a form for a party subscription. I need to have 2 different actions for that form.
The 1st one is to a cgi on my website to store the subscription data in a flat text file for internal use.
The 2nd is cgi to the payment gateway.

Once the submit button is clicked, the data should be sent both to my cgi + the payment gateway.

Is it possible?

Could you please help me?

Thanks a lot

WebRecka
08-11-03, 16:41
You need javascript for this. Go on google and look up form action tutorials. Most likely what ide do is have it go to a perl script which processes your data then prints a forum and auto-submits it using javascript.

markguy
08-15-03, 16:48
Or change your code flow to a linear model and have the action point to your internal script, let it do it's thing then pass the info on to the payment gateway.