alexia 0 Report post Posted June 23, 2005 good day webmasters...i am in need of a script that will count the inputted characters one will enter... i mean the script must count the number of characters in a textarea as i am entering characters to the textarea..i know the logic but i cant translate it yet in PHP... so i hope you can help me...thanks a lot in advance... Share this post Link to post Share on other sites
guangdian 0 Report post Posted June 23, 2005 yes,it must be a very simple php script ..i just learning php but i just can not answer it for you.you see,that,your way of using php is not a normal way.i just didn't meet it before.Good luck.Guangdian Share this post Link to post Share on other sites
rvalkass 5 Report post Posted June 23, 2005 There is a PHP function that counts the number of characters in a string: strlen($variable_to_count); I am not sure how you could use this 'live'. If anyone could enlighten me, guangdian and alexia on how to include this 'live' we would be very greatful. Share this post Link to post Share on other sites
HmmZ 0 Report post Posted June 24, 2005 First of all, if your going to attempt to halt further character inputs, there's a much easier way (maxlength=""). as for your "real-time length-check"..: link It's a long page, but just scroll to the bottom (Header="Real-time" JavaScript check) Hope this helps.. Share this post Link to post Share on other sites