Fetch an item from POST data with fallback to GET.

@param string|array|null $index  Index for item to fetch from $_POST or $_GET
@param integer|null      $filter A filter name to apply
@param mixed             $flags

@return mixed