the "email_address" parameter needs to be the email. If that's your
On Oct 11, 5:17 pm, Rod <
rodsdes...@gmail.com> wrote:
> Hi,
>
> If I could "chime in" on this one... since I'm having the same issue.
> and I'll apologize up front - I'm definitely NOT an api guru...
>
> Question: does the email address need to be in the config.inc.php?
> If so - how then do you set it based on the field in a form? I'm
> building a form with a bunch of javascript that shows fields based on
> radio buttons that have been clicked. The email field is in the form
> and I've been trying to post it to API this way:
>
> $my_email = $_POST[text_1];
> $fname = $_POST[text_2];
> echo $email .'/' .$fname .'/' .$interest;
> $interest = $_POST[radio0];
> echo $interest;
>
> require_once 'inc/MCAPI.class.php';
> require_once 'inc/config.inc.php'; //contains apikey
>
> $api = new MCAPI($apikey);
> $merge_vars = array('FNAME'=>$fname, 'LNAME'=>'', 'INTERESTS'=>
> $interest);
> $retval = $api->listSubscribe( $listId, $my_email, $merge_vars );
>
> if ($api->errorCode){