Hi everybody
Can anyone point me in the right direction as to how to prevent people from testing how many megabytes of text can be submitted in the <textarea> in my users' form? The users' comments are entered into a simple text area and then, after processing, into a MySQL TEXT field. Can I limit the submission to a particular number of characters or a particular number of KB or whatever. I'd like to do this to stop jokers from attempting to submit the complete works of Shakespeare in the comments field.
Obviously, the MySQL TEXT field will refuse over-large submissions, but I'd like to nip such attempts in the bud before they even get as far as the DB. So, if the text is in the variable $comments, how can I limit the size of that variable?
Thanks for any pointers
Norm