|
|
|
|
![]() ![]() |
Jun 23 2005, 12:59 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 310 Joined: 9-February 05 From: Italian Member No.: 3,677 |
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... |
|
|
|
Jun 23 2005, 01:04 PM
Post
#2
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,183 Joined: 24-September 04 Member No.: 1,245 |
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 |
|
|
|
Jun 23 2005, 06:23 PM
Post
#3
|
|
|
apt-get moo ![]() Group: [MODERATOR] Posts: 2,116 Joined: 28-May 05 From: Hertfordshire, England Member No.: 7,593 ![]() |
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. |
|
|
|
Jun 24 2005, 12:02 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 362 Joined: 2-March 05 From: The Netherlands Member No.: 4,097 |
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.. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th September 2008 - 09:05 AM |