Hey I want to create an optin form that registers someone to both a getresponse and aweber list (or any combination of major ESPs - 2 or more). Anyone have a script that can do this? :439:
I don't have a script already written that does this, but if this helps answer your question, yes you can do this with any ESP that has an api, normally your form submits to your own script which processes the information, and then makes the api call to the ESP. So for your solution, instead of just making 1 api call, you would make 2 (or could send to as many as you had apis for) calls when it processes the info. I see the original question was asked a while ago, but to answer it, yes its possible to add to as many ESPs as you want in 1 form submit, as long as they have some kind of api to add records to your accounts with them.
You could do it with javascript. You would have 1 main form that the end user would fill out.. Then using javascript, read the contents of those fields and javascript to generate 'hidden' forms with that data and submit it.. By doing it with javascript the form post will come from the user's ip address instead of using a server side script.. I've put together something similar before.
Here's a rough POC... Obviously you will need to add whatever form fields are needed and stuff. ahh stupid forum won't let me post 'html' / 'javascript' .. http://pastie.org/private/egjfyv2qhhh10ddr4zsbg This script will create an iframe , form, and form fields and post to the URLs provided..
We have done this in the past using php and curl on the thank you page. Just have the first ESP pass the variables to the thank you page, and then open up a connection to the second ESP, submit and then load your thank you page.