We study the existence of three weak solutions to the Dirichlet boundary condition for a $p(x)$-Laplacian equation. Using a variational method and the three critical point theorem, we would show the existence and multiplicity of the solutions. For this purpose, we focus on a generalized variable exponent Lebesgue-Sobolev space.