How to block some words at register page? I dont want sm user register with any site name, example: google.com, how i can block these words at registration page? I want code for indifun script
How to block words?
Collapse
X
-
If($sitename=$uid)
{
echo"bla bla bla"
}Find me on facebookPHP Code:/* I don't know everything hehe */
-
PHP Code:///function function check($string){ $words = array( // 'banned words/links blaaaa', 'google.ro', 'yahoo.ro' ); foreach ($words as $word) { if (strstr($string, $word)) { return true; } } return false; } ////////USAGE : $string='bla googdro 2'; if(check($string)){ echo"you cant use such words "; } else { echo"ok?!";}Unamos los corazones,hoy todos somos multicolores!
Comment
Comment