Hello, I want to set a maximum amount of characters in my textarea on the server side. I already have this set on the client side. So I am just looking for the best method to add to my pre-existing formmail.php. Thanks!
It depends on whether or not you want to clip the text at the last character in the middle of a word or not. If you don't care, then using substr [php.net] will be fine. If you want to make sure you don't clip a word you could use wordwrap [php.net].