[code]<?php function SafeGurad($tempinput) { $tempinput = str_replace("%20","",$tempinput); $tempinput = addslashes($tempinput); $tempinput = str_replace("javascript","No_Java_Script_Allowed!",$tempinput); $tempinput = str_replace("</script>","No_Script_Allowed!",$tempinput); $tempinput = str_replace("<script>","No_Script_Allowed!",$tempinput); $tempinput = str_replace("SELECT * FROM","No_SQL_Script_Aloud!",$tempinput); $tempinput = str_replace("<","<",$tempinput); $tempinput = str_replace(">",">",$tempinput); //return $tempinput; return($tempinput); //Not sure what one to use but they aint working //Echo $tempinput; } $tempinput = " /<>/<r>/<R>/\/\/\/\/\<B><R><R> LOL PANTS javascript SELECT * FROM"; SafeGurad($tempinput); php?> [/code] It does not filter threw like it should, any idea why?