| Post |
|
Guest
| Pilgrim2009 5:27 pm November 1, 2008
| |
|
|
Please replace the ??? with your data!
[desc]: _
I want to limit to 30 words the message textarea of a contact form. I tried with a regexp as mentioned in the FAQ but it only counts characters and I need words.
Is it possible?
Thanks,
Felix.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 11:54 pm November 1, 2008
| |
|
|
I'm sure it is possible but I'm not a regexp pro myself.
|
|
|
|
|
Guest
| Pilgrim2009 5:15 am November 2, 2008
| |
|
|
Neither me, but the more I read the more I think it would be easier to make with Javascript+regexp, not with regexp alone.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:02 am November 2, 2008
| |
|
|
…but then it would only work if people have enabled JS.
|
|
|
|
|
Guest
| MIchael 4:49 pm January 17, 2009
| |
|
|
I've been wishing for a word count as well. Ideally it would be nice if there were a visual indication as a user was entering into the particular text area, how many cumulative words or characters have been entered.
It's above my head but maybe this page will help you figure it out. If you do, please post your solution for the rest of us to learn from.
http://cssbeauty.com/skillshar…..ex-in-php/
|
|