Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help- Limiting input field max characters


jtheneo

Recommended Posts

Hi there

sorry, desperate here. Have a big deadline and need to make sure the forms to create new addresses don't go over a certain character limit.

I managed to get two of them to work by doing:

('firstname','', 'maxlength="20"')

Now the last one, I think is address_book_details I think. It's the form that when you say, add address from teh address book, it goes to. The format is different and I don't know how to change it. Like this:

 

<td class="main"><?php echo ENTRY_LAST_NAME; ?></td>

<td class="main"><?php echo tep_draw_input_field('lastname', $entry['entry_lastname']) . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>

</tr>

How do I change it so it's limited to the 20 characters? Please help.

Link to comment
Share on other sites

change it to:

<tr>

<td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>

<td class="main"><?php echo tep_draw_input_field('firstname', $entry['entry_firstname'], 'maxlength="20"') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>

</tr>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...