st0rmer Posted October 25, 2007 Share Posted October 25, 2007 I am making a very basic chat Script that stores a users post into a text document, and then displays it. The trouble i am having is stopping people from posting php or html or something like that into their posts. How do i get rid of any html code or anything like that in the post I am using a simple form for the users to post their comments Any help will be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/74770-solved-basic-chat-script/ Share on other sites More sharing options...
premiso Posted October 25, 2007 Share Posted October 25, 2007 www.php.net/strip_tags Quote Link to comment https://forums.phpfreaks.com/topic/74770-solved-basic-chat-script/#findComment-378000 Share on other sites More sharing options...
st0rmer Posted October 25, 2007 Author Share Posted October 25, 2007 Aaah, thanks alot for the link Quote Link to comment https://forums.phpfreaks.com/topic/74770-solved-basic-chat-script/#findComment-378007 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.