webmaster1 Posted April 4, 2009 Share Posted April 4, 2009 Hi All, Does anyone know of a quick and easy way to implement a live character count for a text area? Ideally it would count backwards. Google seems to be returning a load of malarchy so I thought I'd ask the experts. Quote Link to comment https://forums.phpfreaks.com/topic/152492-solved-live-character-count-for-text-area/ Share on other sites More sharing options...
Maq Posted April 4, 2009 Share Posted April 4, 2009 Even though it's from 2000, it seems to be exactly what you're looking for. It's JS, which is the only way you can really do live character counts: JS Char count Quote Link to comment https://forums.phpfreaks.com/topic/152492-solved-live-character-count-for-text-area/#findComment-800900 Share on other sites More sharing options...
webmaster1 Posted April 4, 2009 Author Share Posted April 4, 2009 This is very nice. It even limits the characters. I keep on forgetting to research client side alternatives rather than attempting to do everything via php. Thanks Maq. Quote Link to comment https://forums.phpfreaks.com/topic/152492-solved-live-character-count-for-text-area/#findComment-800913 Share on other sites More sharing options...
Maq Posted April 4, 2009 Share Posted April 4, 2009 Yeah most of the things you want to do "live" has to be done with some sort of client side language, usually javascript. Just remember that PHP gets parsed and rendered into HTML before the user even does anything. You're welcome Quote Link to comment https://forums.phpfreaks.com/topic/152492-solved-live-character-count-for-text-area/#findComment-800917 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.