Try checking out the
Categorized Q&A questions in the CGI programming section. In particular, this might be what you're looking for:
carrying a lot of vars from page to page with hidden().
Basically, your first script just builds a
<form method=post action=my_second_script>
with a bunch of
<input type=hidden...> fields.
Alan