Tony Brinton wrote:
I'm a beginning PHP programmer. I'm wondering if there is an easy way to
limit a user's input in a text field to 1000 characters?
After the user sends his textfield (whatever the length) you can cut
that into the first 1000 characters:
$limited = substr($_POST['textfield'], 0, 1000);
If you want to limit at the client side, there's always the unreliable
option of using JavaScript.
--
--= my mail box only accepts =--
--= Content-Type: text/plain =--
--= Size below 10001 bytes =--