jdock1 Posted July 11, 2010 Share Posted July 11, 2010 I made a simple "guestbook" script to test my knowledge, well I entered HTML into the textarea and it fucked everything up. I was using a while loop to display the entries, I entered an HTML form into the textarea and really screwed it up. I need to know what variables/functions to use to restrict that?? Link to comment https://forums.phpfreaks.com/topic/207453-how-can-i-make-it-so-users-cannot-enter-html-into-a-textboxtextarea/ Share on other sites More sharing options...
plutomed Posted July 11, 2010 Share Posted July 11, 2010 http://uk2.php.net/htmlspecialchars Link to comment https://forums.phpfreaks.com/topic/207453-how-can-i-make-it-so-users-cannot-enter-html-into-a-textboxtextarea/#findComment-1084601 Share on other sites More sharing options...
jdock1 Posted July 11, 2010 Author Share Posted July 11, 2010 Thanks! Link to comment https://forums.phpfreaks.com/topic/207453-how-can-i-make-it-so-users-cannot-enter-html-into-a-textboxtextarea/#findComment-1084605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.