I'm totally new to the CMS concept, but CMSMS has made life very simple and

The form I need has to capture data from the user and then process and output some recommendations. The process is critical and confidential. Previously my plan was to use the standard php code and do it. But with CMSMS I can't do this. So i get the point that I will have to make a module to do the particular feature.
Now, the issue is, I will have a form in page 1, which will capture data from User A. In form 2, I need to use the data from Form 1 to come up with some db sql and eventually output. Form 1 has some validations as well which have to happen on server side.
How do I do this? Do I need to make two modules? Also,will appreciate if you could explain how to pass parameters from one page to another and between modules
Please help me, my life is on the line :S
Thanks in Advance