Infinitely many solutions for a Dirichlet problem involving the p-Laplacian