View Full Version : 1 form, multiple actions?

11-13-2002, 01:40 PM
I know similar questions to this have been posted already, but none answer the actual solution I require.

Basically I have a form, that when submitted gets sent to WorldPay (Credit Card Payment Processor), at present once worldpay receive the form data, they then send an email to me with the form data and about another 50 lines of data which is just irrelevant crap.

What I would like is for the form to also submit to a simple formmail script that will email me directly on the required fields as well as sending the data to WorldPay

At present the action code for the script is:
<form action="https://select.worldpay.com/wcc/purchase" method="POST" name="idform">

But I would like the same form to do this as well:
<form action="/cgi-sys/cgiemail/cgiemail_template.txt" method="POST">

I only want 1 SUBMIT button though!

Any ideas?

Thanks in advance