Drezard Posted September 24, 2006 Share Posted September 24, 2006 Hello, Just wondering with a HTML how do you restrict how many characters the user can enter into the form?Whats the code.- Cheers, Daniel Quote Link to comment https://forums.phpfreaks.com/topic/21842-restricting-chars/ Share on other sites More sharing options...
.josh Posted September 24, 2006 Share Posted September 24, 2006 <input type = 'text' maxlength = '10'>this limits the number of characters to 10. p.s. - moving to html forum. please ask questions in the proper forum k thx. Quote Link to comment https://forums.phpfreaks.com/topic/21842-restricting-chars/#findComment-97524 Share on other sites More sharing options...
wildteen88 Posted September 24, 2006 Share Posted September 24, 2006 If you want to limit the number of characters for a textarea. Have a look at [url=http://www.phpfreaks.com/forums/index.php/topic,106608.0.html]this thread[/url]. Quote Link to comment https://forums.phpfreaks.com/topic/21842-restricting-chars/#findComment-97632 Share on other sites More sharing options...
fenway Posted September 25, 2006 Share Posted September 25, 2006 Be aware that this is a soft limit, and can easily be defeated by JS. Quote Link to comment https://forums.phpfreaks.com/topic/21842-restricting-chars/#findComment-97945 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.