PowersWithin Posted July 31, 2007 Share Posted July 31, 2007 I have a form for users to fill in, then when they submit it it saves it into mySQL. Then on another page it displays what the users have entered. I'm wondering how can I make it so that if users input & submit HTML/php tags it will print it out as just normal text? Thanks for your time. Quote Link to comment https://forums.phpfreaks.com/topic/62748-solved-filtering-user-input-n00b-question/ Share on other sites More sharing options...
chombone Posted July 31, 2007 Share Posted July 31, 2007 try looking up the strip_tags function Quote Link to comment https://forums.phpfreaks.com/topic/62748-solved-filtering-user-input-n00b-question/#findComment-312307 Share on other sites More sharing options...
PowersWithin Posted July 31, 2007 Author Share Posted July 31, 2007 Thanks, that's exactly what I needed Quote Link to comment https://forums.phpfreaks.com/topic/62748-solved-filtering-user-input-n00b-question/#findComment-312313 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.