function EValido($aux){ $proibidos = array("\"","'","%","="); $iproibidos = array(" like","like "," or","or "," and","and "," from", "from "," drop","drop "," delete","delete ","login", "teste","acesso","senha","email"); if($aux=="") return False; foreach($proibidos as $vlr){ if(ereg($vlr,$aux)) return False; } foreach($iproibidos as $vlr){ if(eregi($vlr,$aux)) return False; } return True; }