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 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. 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]. 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. Link to comment https://forums.phpfreaks.com/topic/21842-restricting-chars/#findComment-97945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.