Hi - I'm writing a multi-page php script that keeps track of state with a hidden variable in the html forms. It's all working well except I would like to know how to auto submit a form and change the state. For example when I'm in state 2 and the user enters some data and hits a submit button I want the script to change to state 3 - process some data in that state then go back to state 1. I want the transition to go back to state 1 without the user having to hit a submit button - i.e. I want the form to auto-submit. Is there a way to do this?
Thanks for any help you can give. Jim