in reply to CGI question: session management mechanisms
For something simple, I'd look at placing hidden form variables on your page - using the CGI modules would allow these to maintain their values across pages easily.