Polyprotic acids have ionization constants Ka1, Ka2, Ka3... for each ionization (where the numbers are the subscripts). Usually the ionization constants get significantly smaller with each subscripts, meaning the second ionization will happen to a much smaller extent.
Each ionization is represented by a reaction equation and a Ka value. the ionization of a weak acid always exists in equilibrium with the reverse reaction, meaning the resulting conjugate bases react with hydronium ions to form the acid. All but the strong acids such as HCl and HBr ionize incompletely and the same idea applies to weak bases and strong bases.
in a solution, H2PO4, HPO4-, (PO4)-2 and the H+/H3O+ ions would exist together in equilibrium. hope others can correct me if I'm wrong.