Infinitely many solutions for a Dirichlet boundary value problem depending on two parameters