Validating forms in coldfusion
You’ll also see how to set up a PHP testing environment and preview PHP pages in Dreamweaver.
Along the way you’ll build your skills in areas like using admin consoles, commenting code, working with variables and includes, and much more.
From what you've described, it makes more sense to use client side validation on "form1" (cfform, jquery, etc...). Pre-validating with client side code makes for a nicer user experience. Coldfusion has built in form validation which you can use. Link to adobe help docs on sessions and passing variables inside a session: Fusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c48The above approach is not 100% Good, because your textname and address can contain special Characters, So it is just an example of doing the same in different way and make a bit of secure.
If you can come up with a good, concrete problem, I would love to explore this.You can override it in the AJAX request (as I do with my return Format AJAX property). You have credit card charges "if" there is a dollar amount.