Catalysis of the transfer of a phosphorus-containing group from one compound (donor) to a phosphate group (acceptor).