By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,600 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,600 IT Pros & Developers. It's quick & easy.

Form Action Question - Javascript solution?

P: 12
I am creating a donation form which needs to be processed through Paypal, therefore [form action="https://www.paypal.com/cgi-bin/webscr" method="post"] will do the trick.

The trouble is that I would also like the form to go through a formmailer script in order that the data from the form is sent to my email account. I have a script that will do this: [form action="cgi-bin/uploadformmailer.cgi" method="post"] My question is how can I get the form to perform BOTH actions on submission?

You can see the form here"
http://www.simplymad.com/atease/scro...tionform1.html
Any help would be greatly appreciated!
Sep 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: 12
I am creating a donation form which needs to be processed through Paypal, therefore [form action="https://www.paypal.com/cgi-bin/webscr" method="post"] will do the trick.

The trouble is that I would also like the form to go through a formmailer script in order that the data from the form is sent to my email account. I have a script that will do this: [form action="cgi-bin/uploadformmailer.cgi" method="post"] My question is how can I get the form to perform BOTH actions on submission?

You can see the form here: HTML FORM

Any help would be greatly appreciated!
Sep 11 '06 #2

acoder
Expert Mod 15k+
P: 16,027
Post the values to a cgi script which emails the data and then posts to Paypal.

You could also use JavaScript to make an Ajax request to your script first and then submit to Paypal.
May 13 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.