GET/POST/REQUEST/COOKIE parameter validation functions for PHP