/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?
// Must be called AFTER the database connection is opened!
$_POST=sanitize($_POST);
$_GET=sanitize($_GET);
$_COOKIE=sanitize($_COOKIE);
$_REQUEST=sanitize($_REQUEST);
function sanitize($input){
foreach($input as $k=>$i){
$output[$k]=sanitize($i);
}
}
else{
}
}
return $output;
}
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                