Reply
Help with character count using text area
Old 10-17-2009, 07:15 PM Help with character count using text area
Junior Talker

Posts: 1
Name: Beth
Trades: 0
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..
avoosh is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Reply     « Reply to Help with character count using text area
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10050 seconds with 13 queries