deadhead Posted June 12, 2008 Share Posted June 12, 2008 Hello, I am trying to stop people from posting html in forms because it is messing up my website... is there a code to prevent this from happening? Thanks Deadhead Link to comment https://forums.phpfreaks.com/topic/109979-html-form-injection/ Share on other sites More sharing options...
DarkWater Posted June 12, 2008 Share Posted June 12, 2008 Use: $text = htmlspecialchars($text); Link to comment https://forums.phpfreaks.com/topic/109979-html-form-injection/#findComment-564349 Share on other sites More sharing options...
deadhead Posted June 12, 2008 Author Share Posted June 12, 2008 thank you it worked Link to comment https://forums.phpfreaks.com/topic/109979-html-form-injection/#findComment-564363 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.