Jump to content

Archived

This topic is now archived and is closed to further replies.

mrjameer

limiting characters in textarea without php/javascript

Recommended Posts

hi,

i want to create a textarea in which the user can input 100 characters only.he canot able to input more than 100.i want to do this with out using php/javascript.is it possible.your help will be appreciated

thanks

mrjameer

Share this post


Link to post
Share on other sites
Not possible with textarea, but maxlength can be set for input type="text"

Share this post


Link to post
Share on other sites
You then use javascript. Here's a good source: http://javascript.internet.com/forms/limit-textarea.html

Share this post


Link to post
Share on other sites
why dont you want to use javascript? that would be the best way to go. You could just to a strlen() for your textareas $_POST var and if it is greater then the amount you want then redirect them back.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.