Hello,
I do not know if this needs to be clarified but I am using PHP and developing in Netbeans. I am not familiar with Javascript.
Thank you for your help in advance. My database will only allow for 4000 characters for a comment field. I have chosen to use a textarea input type for the user to enter the comment. The textarea has no restrictions on input size. I would like to display a counter on the page to count down from 4000 so the user knows how many characters he/she has inputed. Additionally I need to return to the page if the user has inputed more than 4000 characters. I would like to capture the rejected comment and display it back in the textarea so the user doesn't have to type all over again. A marker to indicate the cut off point in the comment (where the user exceeded 4000) characters would also be a bonus. Any help with any of these tasks would be greatly appreciated.
Thank you!
limiting text in a textarea or other recommend input type
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: limiting text in a textarea or other recommend input type
Double posting is not cool. I've since removed your duplicate post.