I have an order form with multiple steps. Form submission is carried out using AJAX. Once a step is completed and submitted the related script validates it and returns a success message. Using JQuery the completed step is hidden and the next step is made visible. The last step of the form shows a order review, this is where i need to show the user inputs that have been validated.
I thought of setting a session variable containing the validated input, after each step, that can then be read in the final step and displayed to the user.
Here's a diagram showing how form should work.
Is there a better way of doing this? Thank you!