Naming Custom Fields

What is the general naming convention for custom fields?  I'm having trouble with the API and I'm wondering if it has to do with the custom fields that I have set up.

I have custom fields such as:

State/Province [state,fallback=] text

When using the API in PHP would the code look like this:

$state = new SubscriberCustomField();
$state->Key = '[state]';
$state->Value = $user5;

- OR -

$state = new SubscriberCustomField();
$state->Key = '[State/Province]';
$state->Value = $user5;

I'm eagerly awaiting a response. :-)


Join 150,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free