$_GET, $_POST and $_REQUEST should always be replaced with filter_input(); Please have a look at
http://php.net/manual/en/function.filter-input.php and make your code more secure. Preferably with a string/integer check to make sure valid values are given. TIA.