On the second page make a hidden input holding the name and value of the state, so when the second page gets submitted and the city gets passed to the third page the state will go along with it.