DeFActo Posted May 4, 2008 Share Posted May 4, 2008 Hello, Is there a possbility to make a multi line text area with fixed count of characters that can be inputed there? Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 4, 2008 Share Posted May 4, 2008 Yes. And it requires javascript. Here's a start -> http://www.google.com/search?q=javascript+character+count+limit Quote Link to comment Share on other sites More sharing options...
DeFActo Posted May 4, 2008 Author Share Posted May 4, 2008 Thanks AndyB, but i would like to avoid JAVA scripting. Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 4, 2008 Share Posted May 4, 2008 Note that JAVA is not the same as javascript. Basically, you have two choices to restrict the user's input. #1 - restrict it on the user end, i.e. use javascript. #2 - restrict it on the server end (however you choose). Disadvantage of #1 (that you don't want to is not a disadvantage) is that the user might have disabled js. Quote Link to comment Share on other sites More sharing options...
DeFActo Posted May 4, 2008 Author Share Posted May 4, 2008 Disadvantage of #1 (that you don't want to is not a disadvantage) is that the user might have disabled js. that is why i try to use js as less as possible. oh well, i will try to figure it out some other way. cheers. Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 4, 2008 Share Posted May 4, 2008 oh well, i will try to figure it out some other way. cheers. http://ca.php.net/manual/en/function.substr.php Quote Link to comment Share on other sites More sharing options...
DeFActo Posted May 4, 2008 Author Share Posted May 4, 2008 oh well, i will try to figure it out some other way. cheers. http://ca.php.net/manual/en/function.substr.php yep, that is one of the options. thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.