ok, heres the code below for you to look at, thankyou for your assistance
<?php if (isset($account->fields['field_name'])) { ?>
<fieldset>
<legend><?php echo ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE; ?></legend>
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_Medicine_on_prescription") {
?>
<label class="inputLabel" for="customers_Medicine_on_prescription"><?php echo ENTRY_CUSTOMERS_MEDICINE_ON_PRESCRIPTION_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_Medicine_on_prescription', '20', '3'); ?>
<br class="clearBoth" />
<?php
} // End of additional customers fields for hobbies.
// We now set up an additional customer field for ages.
if (ACCOUNT_MEDICINE_USED_BEFORE == 'true') {
?>
<?php echo zen_draw_radio_field('Medicine Used Before', 'y', $yes, 'id="medicine used before-yes"') . '<label class="radioButtonLabel" for="medicine used before-yes">' . YES . '</label>' . zen_draw_radio_field('medicine used before', 'n', $no, 'id="medicine used before-no"') . '<label class="radioButtonLabel" for="medicine used before-no">' . NO . '</label>' . (zen_not_null(ENTRY_MEDICINE_USED_BEFORE_TEXT) ? '<span class="alert">' . ENTRY_MEDICINE_USED_BEFORE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
if (ACCOUNT_TAKING_PRESCRIBED_MEDICINE == 'true') {
?>
<?php echo zen_draw_radio_field('Taking prescribed medicine ', 'y', $yes, 'id="taking_prescribed_medicine-yes"') . '<label class="radioButtonLabel" for="taking_prescribed_medicine-yes">' . YES . '</label>' . zen_draw_radio_field('taking_prescribed_medicine', 'n', $no, 'id="taking_prescribed_medicine-no"') . '<label class="radioButtonLabel" for=" change_to_details-no">' . NO . '</label>' . (zen_not_null(ENTRY_TAKING_PRESCRIBED_MEDICINE_TEXT) ? '<span class="alert">' . ENTRY_TAKING_PRESCRIBED_MEDICINE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
?>
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_Medicine_Details") {
?>
<label class="inputLabel" for="customers_Medicine_Details"><?php echo ENTRY_CUSTOMERS_MEDICINE_DETAILS_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_Medicine_Details', '20', '3'); ?>
<br class="clearBoth" />
<?php
?>
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_Months_Pregnant") {
?>
<label class="inputLabel" for="customers_Months_Pregnant"><?php echo ENTRY_CUSTOMERS_MONTHS_PREGNANT_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_Months_Pregnant', '20', '3'); ?>
<br class="clearBoth" />
<?php
}
if (ACCOUNT_BREAST_FEEDING == 'true') {
?>
<?php echo zen_draw_radio_field('Breast_feeding ', 'y', $yes, 'id="Breast_Feeding-yes"') . '<label class="radioButtonLabel" for="Breast_Feeding-yes">' . YES . '</label>' . zen_draw_radio_field('Breast_Feeding', 'n', $no, 'id="breast_Feeding-no"') . '<label class="radioButtonLabel" for=" Breast_Feeding-no">' . NO . '</label>' . (zen_not_null(ENTRY_BREAST_FEEDING_TEXT) ? '<span class="alert">' . ENTRY_BREAST_FEEDING_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
?>
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_Ongoing_Medical_Conditions") {
?>
<label class="inputLabel" for="customers_Ongoing_Medical_Conditions"><?php echo ENTRY_CUSTOMERS_ONGOING_MEDICAL_CONDITIONS_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_Ongoing_Medical_Conditions', '20', '3'); ?>
<br class="clearBoth" />
<?php
?>
while (!$account->EOF) {
if ($account->fields['field_name'] == "customers_Ongoing_Allergies") {
?>
<label class="inputLabel" for="customers_Ongoing_Allergies"><?php echo ENTRY_CUSTOMERS_ONGOING_ALLERGIES_TITLE; ?></label>
<?php echo zen_draw_textarea_field('customers_Ongoing_Allergies', '20', '3'); ?>
<br class="clearBoth" />
<?php
} // End of additional customers fields for ages.
// We now set up an additional customer field for cellphone.
if ($account->fields['field_name'] == "customers_cellphone") {
?>
<label class="inputLabel" for="customers_cellphone"><?php echo ENTRY_CUSTOMERS_CELLPHONE_TITLE; ?></label>
<?php echo zen_draw_input_field('customers_cellphone', '', zen_set_field_length(TABLE_CUSTOMERS, 'entry_customers_cellphone', '40') . ' id="customers_cellphone"'); ?>
<br class="clearBoth" />
<?php
}// End of additional customers fields for cellphone.
$account->MoveNext();
// End of while statement.
// End of additional customers fields MOD.
?>