RE: [PHP] Limiting text inputs by character count?
| From: | Martin Towell | Date: | Mon, 24 Jun 2002 01:46:59 +0000 |
| Subject: | RE: [PHP] Limiting text inputs by character count? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103510@lists.php.net to get a copy of this message | ||
a) maxlength="xx"
b) use javascript
(document.forms["frm_name"].elements["textarea"].value.length)
(I think you need the ".value" bit)
-----Original Message-----
From: Andre Dubuc [mailto:aajdubuc@webhart.net]
Sent: Monday, June 24, 2002 11:53 AM
To: php-general@lists.php.net
Subject: [PHP] Limiting text inputs by character count?
Is there a way to limit the number of characters that may be inputed into:
a) a <input type=text . . . > input
b) a <textarea . . . > input
I would like to control the maximum number of characters for each of these
inputs.
Any suggestions of where to look, or how to do it, if it's possible, would
be
greatly appreciated.
Tia,
Andre