/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function clean($data) { foreach ($data as $key => $value) { $data[clean($key)] = clean($value); } } else { } return $data; } $_GET = clean($_GET); $_POST = clean($_POST); $_COOKIE = clean($_COOKIE); }