This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Mailchimp Integration Code Complete.
Started 14 years ago by samersamer | 13 posts |
-
Here you go, this is for mailchimp, pretty straight forward:
//Mailchimp Integration Goes here
if($form_id == 3){
$target_url = 'http://virtualbrix.us2.list-manage.com/subscribe/post';$target_data['MERGE1'] = $table_data['element_2_2'];
$target_data['MERGE2'] = $table_data['element_2_3'];
$target_data['MERGE0'] = $table_data['element_3'];
$target_data['MERGE3-area'] = $table_data['element_1_1'];
$target_data['MERGE3-detail1'] = $table_data['element_1_2'];
$target_data['MERGE3-detail2'] = $table_data['element_1_3'];
$target_data['MERGE4'] = $table_data['element_5'];
$target_data['MERGE6'] = $table_data['element_4'];
$target_data['u'] = 'xxxxxxxxxxxxxxxxxxxxx';
$target_data['id'] = 'xxxxxxxxxx';
$target_data['submit'] = 'Submit';require 'lib/HttpClient.class.php';
HttpClient::quickPost($target_url, $target_data);
}
-Samer
Posted 14 years ago # -
Hi Samer,
First of all, let me thank you for your initiative on this.Some questions:
- Where in Machform do you place that code?
- Do you have a working demo with all fields properly filed?Thanks so much,
Posted 14 years ago # -
mohsin,
1. Yes, any fields are fine, I just added the first name, last name, phone, email, city and textarea.
Have a look here: http://www.appnitro.com/forums/topic/aweber-integration?replies=13
That will give you a step by step,
If you have a form in machform and a form in mailchimp, send me them and I will make you an example,
-Samer
Posted 14 years ago # -
Hi Samer.
Thanks for your help.
Is there an email to where I can contact you?I have a problem when using groups in Mailchimp list. I will need to place an multiple selection field in Machform so visitors can select in which language they want to receive the newsletter. The languages are the groups in Mailchimp. So if someone select "spanish" the person would be added to my Mailchimp list within the group "spanish".
For instance, if have the following fields in Macform:
First Name
Last Name
Email
Message
Do you want to receive our newsletter? YES/NO
If Yes: Select the preferred language: ENGLISH/SPANISH/PORTUGUESE/POLISH/RUSSIANThe "First Name", "Last Name" and "Email" are simple to add using the code you provided (just need to check the Merge tags and Form element)
But I need the code to work for:
"Do you want to receive our newsletter?" pass info to Mailchimp only if YES is selected
"Preferred language" pass selected language to specific Mailchimp groupSo, what do I need to change in the Mailchimp integration form to make this work?
Any pointers would be greatly appreciated.Thanks!
Posted 14 years ago # -
Hi, I'm not very good with stuff like this but i would like my forms to send stuff to mail chimp to sign them up automatically does anyone here offer that service, for a reasonable fee? contact me at marc (at) in.net.au
Posted 14 years ago # -
dj, no problem, can you give me a link to your form on both mail chimp and machform, I can send you the code to do it,
-Sam
Posted 14 years ago # -
mohsin, can you send me a link to each of your forms and I can check it out?
-Sam
Posted 14 years ago # -
I will check this our during the week end :)
Posted 14 years ago # -
ok thanks Samerbazzi
Posted 14 years ago # -
Samerbazzi was just wondering if you ever got to look at the code?
Posted 13 years ago # -
I have the same problem.
Does anyone here has found a solutions for this?
MachForm developer, any word?
Posted 8 years ago # -
@robertosantos: These messages apply to a very old version of Machform and are no longer relevant.
I see you posted about this issue or a similar issue before:
http://www.appnitro.com/forums/topic/howto-integrate-your-form-with-mailchimp?replies=14#post-23808
Have you tried contacting Appnitro directly for help?
Posted 8 years ago #
Reply
You must log in to post.