Many thanks to everyone who has helped me with this form problem. The form is basically working and the input data processed correctly. I'm now cleanup a few loose ends. When the form is first displayed, an input field is displayed just below the dropdown state menu. But in the create account form, from which I based my custom form on, the unlabeled input box is not displayed. The following code from tpl_modules_create_account.php addresses the area of the form in question.
Code:
<?php
if (ACCOUNT_STATE == 'true') {
if ($flag_show_pulldown_states == true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
?>
<?php if ($flag_show_pulldown_states == true) { ?>
<br class="clearBoth" id="stBreak" />
<?php } ?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php
echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');
if ($flag_show_pulldown_states == false) {
echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
}
?>
<br class="clearBoth" />
<?php
}
?>
I can see no way of not executing the code in red and displaying an input field. But when creating an account the input field is
not shown and in my custom form code with the same code, the input field
is shown. I've compared the code in both places, forced the variables entering the code to be identical, and the result is the same. Help!
TIA,
Dave
Bookmarks