function AllowedChars($SubjectString, $SubjectKeys){
$Cleared = 1;
if($SubjectKeys == ""){
$SubjectKeys = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
}
for($y=0;$y<strlen($SubjectString);$y++){
if(strstr($SubjectKeys,$SubjectString[$y]) == FALSE){
$Cleared = 0;
}
}
return $Cleared;
}
Räknas den som null av strstr? :S
Go ahead, make my day