I'm trying to add several fields to a list in Mailchimp. This code is working, except 'FNAME', 'LNAME', and 'ADDRESS' aren't inserting (showing up blank in list after checking Mailchimp site). 'PHONE' and 'SIGNUPLINK' are inserting. Is there a formatting issue, or other?
$Mailchimp = new Mailchimp( $api_key );
$Mailchimp_Lists = new Mailchimp_Lists( $Mailchimp );
$l_merge_vars = array(
'FNAME' => $l_fname,
'LNAME' => $l_lname,
'ADDRESS' => $l_addresscombo,
'PHONE' => $l_phone,
'SIGNUPLINK' => $l_signuplink
);
$l_subscriber = $Mailchimp_Lists->subscribe(
$list_id,
array('email' => $l_email), //
$l_merge_vars ,
'html',
false, //
true //
);
'EMAIL' is also working.