I have a form which I need to POST to multiple scripts. How can I do this the simplest way?
One of the scripts sends email and it's a php file, the other is hosted elsewhere.
Need to collect data on both scripts.
The best way to go about it would be to first submit the form to your local script, then use CURL to POST the (filtered) data that was received to the remote script. Then just watch for the response.
Then simply send the email and process the response from the remote script in your local one.