fallenangel1983 Posted March 20, 2008 Share Posted March 20, 2008 I have created a text box and i want to enter the contents of the textarea into a sql table but i have a maximum length of the column to 200 characters. in PHP can i specifically validate the text area to only allow a maximum of 200 characters in the box before i enter it into the table. Link to comment https://forums.phpfreaks.com/topic/97091-text-area-validation/ Share on other sites More sharing options...
p2grace Posted March 20, 2008 Share Posted March 20, 2008 You could use the strlen command to check if it's beneath 200 characters. http://us2.php.net/manual/en/function.strlen.php Link to comment https://forums.phpfreaks.com/topic/97091-text-area-validation/#findComment-496795 Share on other sites More sharing options...
fallenangel1983 Posted March 20, 2008 Author Share Posted March 20, 2008 Fantastic. Thankyou. good site too. ill bookmark it Link to comment https://forums.phpfreaks.com/topic/97091-text-area-validation/#findComment-496804 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.