Three weak solutions for elliptic Dirichlet problems