I saw a lot of old search scripts and some register pages that get XSS so easy.
So, to disable in script the tags that can be added, sended from GET or POST, you can use the following code into your PHP Code.
So, to disable in script the tags that can be added, sended from GET or POST, you can use the following code into your PHP Code.
PHP Code:
if(isset($_GET)) $_GET = array_map("strip_tags", $_GET);
if(isset($_POST)) $_POST = array_map("strip_tags", $_POST);