Sure, as long as the "Thank You" page is in a scripted language like Perl or PHP. Just pass the parameters down the line, to the next page, for as long as you wish and they will be available page after page.
To pass the parameters you will need to send them in the URL or post them. For a "Thank You" page probably passing them in the URL is the easiest solution :)
Your task is very easy but it may take some time to exlain it in details here.
I would suggest you to download a free trail tool here
[perl-studio.com...]
Use your favorite HTML edit tool to design a form and then use perl-studio step-by-step wizard to generate your perl script