-Oops, sorry!- I posted in the wrong area! Can someone move this thread please?
Ok, I got a array going with the words I want. So if someone posted any of those words I want the script to show a message. So this is what I have so far:
[PHP]$message = $_POST['message'];
$filter = array("word", "word2", "word3");
if($message == badword)
{
//Show error message
}else{
//post message
}[/PHP]
I know the if line wont work, but I just wanted to throw it out their as a example of what I want to do.
Any suggestions?
Ok, I got a array going with the words I want. So if someone posted any of those words I want the script to show a message. So this is what I have so far:
[PHP]$message = $_POST['message'];
$filter = array("word", "word2", "word3");
if($message == badword)
{
//Show error message
}else{
//post message
}[/PHP]
I know the if line wont work, but I just wanted to throw it out their as a example of what I want to do.
Any suggestions?
Comment