In this paper, we consider and solve a mixed type functional equation in connection with a characterization of inner product spaces. This is applied to give a solution to the stability problem for the quadratic functional equation in the class of mappings from a quasi-normed space into a p-Banach space.