Multiple set attributes are not saving when creating a new page programmatically

Permalink
Hi peeps,

Bit stuck here. Some info gets through, other information does not.

All the information comes through on the post. though the information just doesn't seem to save!

Seems to mostly be select attributes that are the problem, from other posts you're meant to set them with an array right?

I would save a string as follows on the front end form:
"bob,steve,joe"

$pastMembers = explode(",", $_POST['past_members']);
    $newPage->setAttribute('main_entry_past_members', $pastMembers);


In some instances the first entry of the array will save but nothing else will. (though not often).

Any ideas?