boo_lolly Posted October 19, 2008 Share Posted October 19, 2008 I can't seem to find the way you make sure a user isn't entering any HTML into a textarea when you submit it into the database. how can you check for that? Link to comment https://forums.phpfreaks.com/topic/129044-solved-how-to-disallow-html-in-a-textarea-before-inserting-into-mysql-database/ Share on other sites More sharing options...
The Little Guy Posted October 19, 2008 Share Posted October 19, 2008 you could let them enter it then remove it... strip_tags() Link to comment https://forums.phpfreaks.com/topic/129044-solved-how-to-disallow-html-in-a-textarea-before-inserting-into-mysql-database/#findComment-668965 Share on other sites More sharing options...
boo_lolly Posted October 19, 2008 Author Share Posted October 19, 2008 thanks Little Guy! That's exactly what I was looking for but couldn't find. Link to comment https://forums.phpfreaks.com/topic/129044-solved-how-to-disallow-html-in-a-textarea-before-inserting-into-mysql-database/#findComment-668968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.