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 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 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 Link to comment https://forums.phpfreaks.com/topic/74770-solved-basic-chat-script/#findComment-378007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.