03-01-2010, 06:18 PM
(This post was last modified: 03-01-2010, 06:18 PM by Dutchcoffee.)
Hi,
I'm trying to use an array to pick out the "blacklisted" words from being used.
I'm currently trying to use this...
And to execute this, I'm using...
What I want, is if anyone types any of those words in the specified text field, it will give them an error, but it's not picking them out for some reason.
Thanks.
I'm trying to use an array to pick out the "blacklisted" words from being used.
I'm currently trying to use this...
PHP Code:
$not_allowed = array("root","www","www2","ww3","admin","staff","dev","mail","web","cpanel","webmail","whm","host","ww2","members","member");
And to execute this, I'm using...
PHP Code:
if(in_array($not_allowed))
{
$_SESSION['error'] = $not_allowed_error;
}
What I want, is if anyone types any of those words in the specified text field, it will give them an error, but it's not picking them out for some reason.
Thanks.