I want to limit the number of characters that can be entered into a form. Here is the javascript http://www.dynamicdrive.com/dynamici...limitinput.htm
Below is the code where I need to reference the javascript.
For item title:
PHP Code:
$fields['item_name'] = array('text' => 'Enter Item Title:', 'field' => $form->makeInputField('item_name', htmlspecialchars_decode(setNULL($itemAdmin->info['item_name'])), 'size="30"'), 'enabled' => $itemAdmin->displayForm, 'required' => true, 'notes' => NULL);
For category title:
PHP Code:
$fields['category_title'] = array('text' => 'Write A Category Phrase:', 'field' => $form->makeInputField('category_title', setNULL($categoryAdmin->info['category_title']), 'size="45"'), 'enabled' => $categoryAdmin->displayForm, 'required' => true, 'notes' => 'Write a phrase 60 characters or less');
Can someone help get the code into the above code?
Thanks for your help
Last edited by avoosh; 10-17-2009 at 07:16 PM..
|