if(get_magic_quotes_gpc()){ $_GET = array_map('stripcslashes',$_GET); $_POST = array_map("stripcslashes",$_POST); }