Im able to use this [gist.github.com ] script but I am unable to get the first name to pass, any ideas how to do? I've tried everything I can think of!
ergophobe
7:47 pm on Jul 22, 2012 (gmt 0)
Can you add another form field that captures first name and then just try to echo it out and stop, rather than sending it on to mailchimp?
At least then you would know where your script is failing.
just dont know what the key is..? anyone have any ideas or messed with this before?
ergophobe
8:26 pm on Jul 22, 2012 (gmt 0)
Why do you think it's in there? Is it collecting first name on the form?
Have your form go to whatever script and output $_REQUEST with a print_r() or vardump() and see what's in there.
drooh
9:03 pm on Jul 22, 2012 (gmt 0)
I know my form is getting the data, its just not passing it into mailchimp because I dont know the key name.
this data array is built from the post data and send to mail chimp using curl, i need to know how to modify the data array so that it sends the first name, for instance
You need to output your post data and see how the array is constructed. Like I said, print_r($_REQUEST) before passing off to cURL and you should get your answer.
Gibisan
6:56 am on Jul 23, 2012 (gmt 0)
Try 'FNAME'=>$first_name,
drooh
11:59 pm on Jul 23, 2012 (gmt 0)
Yeah I tried that a it did not work? confused...
ergophobe
5:43 pm on Jul 24, 2012 (gmt 0)
Maybe I'm not understanding where your fail point is.
Have you output the post data from the form and verified the name of the post variable that is passing the first name data?
If so, then it's a question of looking into the MailChimp API, but until you do that, I can't help.
drooh
7:31 pm on Jul 24, 2012 (gmt 0)
yeah it has something to do with the API which I've looked at and could not figure out, was hoping that someone had done this before and knew what it might be.
ergophobe
6:04 pm on Jul 28, 2012 (gmt 0)
Ah, got it. So it's on the API end you're having the problem.
Okay, in that case, you have to get it into the $merge_vars array, so it needs to be