Jump to content

Disallowing html help.


Imad

Recommended Posts

Hi guys, I'm trying to disallow html and php from form fields. So far I have this:

 

if ($comment && preg_match('<iframe>', '</iframe>', '<frame>') {
echo "$comment";
}

 

It doesn't seem to work. Their has to be another trick instead of putting all the html tags in.

Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/95521-disallowing-html-help/
Share on other sites

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.