I've checked through the file a number of times. The fields that I added are extrafield2 and extrafield3. Here is the info I have added in the various locations:
// start extrafield
$extrafield = zen_db_prepare_input($_POST['extrafield']);
$extrafield2 = zen_db_prepare_input($_POST['extrafield2']);
$extrafield3 = zen_db_prepare_input($_POST['extrafield3']);
// end extrafield
// start extrafield
array('fieldName'=>'customers_extrafield', 'value'=>$extrafield, 'type'=>'string'),
array('fieldName'=>'customers_extrafield2', 'value'=>$extrafield2, 'type'=>'string'),
array('fieldName'=>'customers_extrafield3', 'value'=>$extrafield3, 'type'=>'string'),
// end extrafield
$account_query = "SELECT customers_gender, customers_firstname, customers_lastname,
customers_dob, customers_email_address, customers_telephone,
customers_fax, customers_extrafield, customers_extrafield2,
customers_extrafield3, customers_email_format, customers_referral
FROM " . TABLE_CUSTOMERS . "
Like I mentioned the infromation is correctly inserted into the database from the account creation page. Also the first extrafield updates fine from the account edit page.
Any other thoughts on what could be causing this?