Oops... I mis-typed. In step 3 (below), don't default your variables to the submitted form variables, default them to whatever default values you want (I usually use zeros or blanks/nulls again since I am usually doing some scrubbing). This, of course, is because CFPARAM will use the submitted form variables if they exist.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nate Rightmire Sent: Tuesday, March 02, 2004 8:22 AM To: [EMAIL PROTECTED] Subject: RE: [KCFusion] Web form data missing on return One thing that I have done to avoid this problem without resorting to session variables is this: 1. CFPARAM all of your form variables on your originating page, defaulting them to zeros or blanks/nulls. 2. In your originating form, seed the VALUE attributes with your CFPARAMed variables. 3. On the receiving page, CFPARAM your variables, defaulting them to the form variables that were submitted. 4. Dump the received form variables into a hidden form. 5. Do any error checking/variable scrubbing. 6. If you find any problems, submit your hidden form back to the originating page. This will pass all of the submitted variables back to the original form for ready (re)use. It also provides a convenient way to pass a customized error message back to the form, as well as a potential "onLoad" variable to pre-select the field that is causing problems. When the original page loads, check for a passed error message and if it's there, display it. Nate Rightmire, Web Developer Shorr Packaging Corp. 800 N. Commerce St., Aurora, IL 60504 tel: 630.499.3090 email: [EMAIL PROTECTED] www.shorr.com www.shorrexpress.com ========================================================= Kansas City ColdFusion User Group's website & listserv is hosted through the generous support of Clickdoug.com To send email to the list, email [EMAIL PROTECTED] To (un)subscribe, email [EMAIL PROTECTED] with your request. For hosting solutions http://www.clickdoug.com Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. ======================================================
