The keyword you want is "session". There's a lot of literature on managing sessions with Perl, and quite a few modules in the CPAN to deal with it. The basics are that you need to either come back to the same process that served the previous hit (rare), send all the intermediate values down to the client as hidden fields (bandwidth intensive and security issues abound) or save the information into a server side persistent data store and use some session ID sent to the client as a cookie or hidden field or mangled URL to identify the session.