Just want a really simple way to check a textarea string for all characters or stings in a variable delimited by pipes...
Update: Yeah it doesnt have to be in pipes, thats just how I stored the different characters in the database. All it needs to be is a solid example of how to check the text for whatever you need. At the moment ive got a long list of strpos() statements, which I suppose could be looped from an array but nobody seems to have come up with a way to check against anything a bot can put into a message form, least not that I found :(
$spmChk = 'clean';
$textarea = 'This i$ some text for the textªrea';
// needs to be abe to process any characters
$spamChars = 'href|http|#|¥|²|æ|é|Hello. And Bye.|£|$|ˆ|ª';
// my attempt
// search textarea for spam characters
if (preg_match("/$spamChars/u", $textarea)) {
$spmChk = 'you got spam :)';
}
echo $spmChk;