Hi,
I've created a function :
function DescCheck($desc) {
for ($n=0; $n<count($NoWord); $n++) {
$Line=each($NoWord);
$descpat=$Line[value];
if (eregi($descpat,$desc)){
$desc = FALSE;
} else {
$desc = addslashes($desc);
}
return $desc;
}
}
And here is the other relevant code :
$desc=$_POST['SubDesc'];
$desc=DescCheck($desc);
if (!$desc) {$err="desc";}
echo $desc;
This function is supposed to check for certain words in $desc, when submitted from a form.
I want it to print the $desc after it runs the function but it wont.
HELP !
🙂