note 38715 deleted from function.strip-tags by vincent
| From: | vincent@php.net | Date: | Sun, 04 Jan 2004 18:36:47 +0000 |
| Subject: | note 38715 deleted from function.strip-tags by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62901@lists.php.net to get a copy of this message | ||
Note Submitter: dewindj@student.gvsu.edu
----
It's quite useful for the most part, saves alot of time and effort trying to filter out tags. I
use it when users submit quotes from various people.
<?php>
$quotedName = strip_slashes($_POST['quotedName'],"");
$quote = strip_slashes($_POST['quoteEntry'],"");
$submitter = strip_slashes($_POST['submitter'],"");
echo '<p>'.$quotedName.'</p>';
echo '<p>'.quote.'</p>';
echo '<p>'.submitter.'</p>';
?>
Only difference with my code is it puts it into a database, but it's quite useful to stop
spammers.