Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Limiting my forum’s post size

You have 2 options.

1. Limit it on the client side using JavaScript

2. Limit it on the server side using PHP.

If you limit it on the client side, it’ll be the easiest to implement but if the person turns off JavaScript in there browser – the person will still be able to post greater than 3000 characters.

If you choice option 1, you’ll want to create some type of “maxlength” functionality for the TEXTAREA attribute in the post-form.php.

I haven’t used it but you’ll want to use something simply like:

http://www.javascriptbank.com/javascript/form/validation-limitation/textarea-maxlength/detail/

Skip to toolbar