We prove an alternative for a nonlinear eigenvalue problem involving the p(x)-Laplacian and study a subcritical boundary value problem for the same operator. The theoretical approach is the Mountain Pass Lemma and one of its variants, which is very useful in the study of eigenvalue problems.