I'm using PHP to do some form validation..Basically, to block words related to porn and violence. Only problem is, if the word is
changed to CAPS, for example, 'Rude' or 'rUde' or 'RUDE', then the user is able to make the submission. The original word to be banned was 'rude'..So, is there a way to make the code check for these conditions. Right now, the code looks like this:
$list="SELECT * from banned";
$list2=mysql_query($list) or die("Could not get list");
while($list3=mysql_fetch_array($list2))
{
if(substr_count($url,$list3[word])>0)
{
$illegal++;
}
if(substr_count($title,$list3[word])>0)
{
$illegal++;
}
if(substr_count($description,$list3[word])>0)
{
$illegal++;
}
}
if($illegal>0)
{
print "<br><h2>You have entered a blacklisted/banned word....</h2>";
}
TIA



