Use the server behavior "Set Session Value" on each page that links into the form. Set the same session variable name with the value corresponding to the page name you are on.
Then in the redirect, use that session variable... I'm not sure I can explain it any simpler. Where are you getting stuck? Can you point out what part of my explanation you don't understand?