/* Function name: CHECK FOR SYMBOLS Description: return TRUE if matches. ( True = OK ) ( False = NOT OK ) */ function check_for_symbols($string){ $len=strlen($string); $alowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; for($i=0;$i<$len;$i++)if(!strstr($alowed_chars,$string[$i]))return TRUE; return FALSE; } @@//replace with /* Function name: CHECK FOR SYMBOLS Description: return TRUE if matches. ( True = OK ) ( False = NOT OK ) */ function check_for_symbols($string){ $len=strlen($string); $allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; return !in_array($string, $allowed_chars) ? FALSE : TRUE; }