On elliptic problems with a nonlinearity depending on the gradient