Chris Beall <Ch*********@prodigy.netwrites:
SSG wrote:
>I have text area having 4 rows & 10 cols.. while I am typing in
Textarea , it should not accept the 5 th row & 11 th col...
Hw to create text area like that....
You could replace the textarea with <input type="text" size="40"
maxlength="40">. That will limit the input to 40 characters
"Limit" is too strong a word, I think. A cooperative browser will prevent
ordinary users from entering more than 40 characters. But, a hostile user
can easily use a noncooperative browser and/or a script to submit more data
than that to the server.
The internet being what it is, hostile users are in abundance, so depending
on the browser to enforce this so-called "limit" is a Very Bad Idea. By all
means, do include it - it's far more convenient for ordinary users to have
their browser limit their typing, than to submit the form and have an error
page come back. Just don't depend on it; double-check on the server to make
sure the browser did the right thing.
sherm--
--
Web Hosting by West Virginians, for West Virginians:
http://wv-www.net
Cocoa programming in Perl:
http://camelbones.sourceforge.net