Jump to content

[SOLVED] PHP input problems


neogemima

Recommended Posts

Hello Everyone,

 

So here's what's going on.  I have a site where people can post news, etc.  I would like it so that when they post news, they can format lists if they would like in the content using <ul> etc. tags if they choose. 

 

This however presents a security issue in my php code because people can also put javascript into the content and make the site display weird things etc.

 

Right now I am using htmlentities() in my php upload script to make sure no malicious scripts are recognized in the posted forms.  How can I keep this AND let people be able to insert lists?

Link to comment
https://forums.phpfreaks.com/topic/157519-solved-php-input-problems/
Share on other sites

I'm not that great with bbcode as I have not implemented it before.  I like the strip tags option though.  Thanks to both of you.  I will be looking into bbcode for subsequent updates where I can use buttons similar to this site for formatting.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.