Can anybody tell me why this isn't working...

I am using the cforms plugin for wordpress and have a checkbox for newsletter sign up that I want to pass to CM.  The CMBase.php file is in the right place, the APIs are correct.  The form submits properly.  The only thing that isn't working is the the name and email isn't appearing in the subscribers list.  Can anybody have a stab at why this isn't working>

Cheers

Mitch

function my_cforms_action($cformsdata) {
    $form   = $cformsdata['data'];
    $subscribe = $form['Join our newsletter'];
        if($subscribe == 'on') {
            require_once('custom/CMBase.php');
            $api_key = 'xxx';
            $client_id = 'xxx';
            $campaign_id = null;
            $list_id = 'xxx';
            
            $cm = new CampaignMonitor( $api_key, $client_id, $campaign_id, $list_id );
            //This is the actual call to the method, passing email address, name.
            $result = $cm->subscriberAdd($form['Email'], $form['Your Name']);
        }
}

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free