How to place multiple forms in ond coldfusion templete..

I was wondering what is the best practice if i have a function which requires 2 Forms several querys and
1 insert...

Here is my flow

user sees inital form and enters customer id and submits query
- query is executed to see if valid customer
if valid customer we display new form with e-mail address field
-if invalid we displa an error
if cusomer submits new form, we will execute a inset query...

i have done this with parameterexists and checked what submit the user pushed. is there a cleaner way to do this ?

Hi AlexPonnath,
user sees inital form and enters customer id and submits query
- query is executed to see if valid customer
if valid customer we display new form with e-mail address field
-if invalid we displa an error
if cusomer submits new form, we will execute a inset query...
Looks effcient already. There are only five step anyway.
Well, what else you are thinking of that could be done. As we do not know much of the requirement what to suggest.
If above mentioned is the flow then it is fine.

Though the questions is that ... what happens if the user comes to second page directly due to any reason... is that possible...
what about database... do you have any identity or unique field... which may conflict...
(if valid customer do not know/fogot its id or login info - this may be irrelivent here...may be)

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key.
We will concen…

The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress
Page.
This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome
Screenshot” Google Chrome Extension, and SmallPDF.com
Log…

The purpose of this video is to demonstrate how to automatically show related posts at the
bottom of a blog post in WordPress.
This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin”
will be used.
Go to your…