Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple php code addition...


Top_Speed

Recommended Posts

Posted

Hi all!

Hope some phpers can help me...

 

I would like to add this code (to limit the input field length)..

'maxlength="64"'

 

to this line:

<?php echo tep_draw_input_field('links_title') . ' ' . (tep_not_null(ENTRY_LINKS_TITLE_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_TITLE_TEXT . '</span>': ''); ?>

 

Not sure where it would get placed for proper syntax.

 

Pre Thanks :thumbsup:

define('PROJECTS', 'Something that goes on forever!');

Posted
Hi all!

Hope some phpers can help me...

 

I would like to add this code (to limit the input field length)..

'maxlength="64"'

 

to this line:

<?php echo tep_draw_input_field('links_title') . ' ' . (tep_not_null(ENTRY_LINKS_TITLE_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_TITLE_TEXT . '</span>': ''); ?>

 

Not sure where it would get placed for proper syntax.

 

Pre Thanks  :thumbsup:

<?php echo tep_draw_input_field('links_title', '', 'maxlength="64"') . ' ' . (tep_not_null(ENTRY_LINKS_TITLE_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_TITLE_TEXT . '</span>': ''); ?>

Posted
<?php echo tep_draw_input_field('links_title', '', 'maxlength="64"') . ' ' . (tep_not_null(ENTRY_LINKS_TITLE_TEXT) ? '<span class="inputRequirement">' . ENTRY_LINKS_TITLE_TEXT . '</span>': ''); ?>

 

 

Thanks Bobby! Appreciate the tip very much and it works like you posted!

 

KJ

define('PROJECTS', 'Something that goes on forever!');

Archived

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

×
×
  • Create New...