FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Limiting # characters in textarea
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Limiting # characters in textarea [message #182532 is a reply to message #182528] Sat, 10 August 2013 23:36 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 8/10/2013 4:54 PM, Twayne wrote:
> Hi all,
>
> Win 7, XAMPP Local Server, PHP 5.3. Target; Online Submitted Forms for
> the general public:
>
> I am trying to come up with a way to force a limit to the length of a
> textarea. It would be nice, but it's not a dealbreaker if it's not
> reasonable to do due to imposed limitations, if a counter could display
> characters entered or characters left. Or even just stopping accepting
> digits when the limit is reached would also be acceptable. I'm pretty
> flexible; exact counts aren't even necessary if they're just ballpark
> numbers.
>
> I discovered maxlength has been added to HTML 5 but many people aren't
> using HTML 5 compatibility yet.
> I've located several ways to make it happen that use javascript or
> JQuery, but javascript isn't allowed to be used in this case. I've done
> a fair amount of research without any real success, I'm afraid.
>
> The limitation I want to impose is in addition the the "standard" ways
> of validating the textarea. I don't want to be victimized by a
> "character bomb" or something similar that goes on for pages and pages,
> for instance.
> Using only HTML or PHP or a combo of the two, might anyone here have a
> proven method for limiting the length of a textarea other than
> truncating it without the sender's knowledge?
>
> Except for js and the like, I'm open to alternatives, of course.
> Although code is always nice, air code often suffices too.
>
> Thanks in advance,
>
> Twayne`

How do the hell do you expect something server-side to prevent the
client from sending something?

Oh, I forgot. You're an illiterate troll - who doesn't care about the
right answer. Just one that agrees with your incorrect perceptions.



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Sexy CATHERINE ZETA JONES Sex Scandals
Next Topic: Email attachment 0bytes using php4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 04:38:13 GMT 2024

Total time taken to generate the page: 0.05684 seconds