Zuncan Posted July 27, 2005 Share Posted July 27, 2005 Hi! I would like to alter the lenghsize of a formfield in account_edit.php. Could someone pls help me alter this code to set lengh of the field? Here is the code that displays the formfield: <?php echo tep_draw_input_field('telephone', $account['customers_telephone']) . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?> /Zuncan So what?! Who care in a hundred years anyway? Link to comment Share on other sites More sharing options...
wheeloftime Posted July 27, 2005 Share Posted July 27, 2005 Hi! I would like to alter the lenghsize of a formfield in account_edit.php. Could someone pls help me alter this code to set lengh of the field? Here is the code that displays the formfield: <?php echo tep_draw_input_field('telephone', $account['customers_telephone']) . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?> /Zuncan <{POST_SNAPBACK}> Change it to <?php echo tep_draw_input_field('telephone', $account['customers_telephone'], 'SIZE="50" MAXLENGTH="30"') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?> to enlarge the visual size of the input field and the maximum characters you can type inside. HTH Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.