I'm working on a page with a form. I pull the form code from a 3rd party company that then takes the post data and puts it into their database. But what I'm trying to figure out is a way to process that form and send a 'text-only email to another internal database - without interfering with the primary action in any way.
I'm open to ideas, whether a php or otherwise.
for the sake of a starting point. Here's the form tag as it is right now :
<form method="post" name="$500-offer_PPC-google" action="https://12as45521vg.t.eloqua.com/e/f4" id="form1241" >
and a submit...
You would need to verify TOS for using the functionality you propose as intercepting is considered to be interfering with the originating communications, but you can use curl for this.
hmmmm... would my boss call that an inelegant solution, or is it worth suggesting?
The other thing I was thinking, is that maybe I could set up a backend cgi script that processes it, then sends the data just "as-is" to the original 3rd party url?
I have nil experience with tweaking cgi mail scripts, though.
Right, which would use either curl or sockets, so it doesn't matter if you are using PHP or perl or any other language.
Again, you have to verify that you are allowed to do this via their TOS; automation and interception are among the first five things in the TOS I use.