RE: [PHP] how to disable html postings?

From: Date: Fri, 15 Aug 2003 18:06:46 +0000
Subject: RE: [PHP] how to disable html postings?
Groups: php.general 
Request: Send a blank email to php-general+get-159738@lists.php.net to get a copy of this message
[snip] I am wondering how to prevent that users can post html through a form. I process the form with php and save the date to a db. There are a couple of sites I have already seen such thing. No matter what you do, it is not possible to submit html commands. Thats exacly what I want to do for my site. Can anybody point me into the right direction on how to "disable" that? [/snip] You will want to use regular expressions and functions associated with regex (such as ereg) to match the tags and remove them from the posts. Start here http://us2.php.net/manual/en/ref.regex.php Have a productive and positve day

« previous php.general (#159738) next »