can any one please tell me how should I popoulate the third dropdown table?

HI every one I have a three dropdown list structure
in which first is country second is states and third is cities.States
populates correctly on the basis of country but city dosen't.
what steps to be taken while doing it.
plz help me out