Should work fine. I assume you're posting a form to a page that can loop through your form variables to create a structure, then serialize it and stuff it in a hidden field in page 2 of your multi-part form. You can also use the JavaScript WDDX functions to serialize the form elements on the originating form. Later pages will deserialize the packet and reconstitute the variables and values.
The code can get a little tricky when creating the dynamic variables - be sure to check out the SetVariable function, although I generally opt for the <cfset "#preferenceVariable#" = trim(StructFind(Variables.prefStruct, preferenceVariable))> type of syntax. With care you can make this type of code very modular and tight. Chuck McElwee etech solutions inc www.etechsolutions.com -----Original Message----- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 7:42 PM To: CF-Talk Subject: Let's Check My Plan (WDDX questions) I'm building an order entry system -- The order takers will be taking phone orders. They have a couple of different items they can sell, each of requires fairly significant amount of data to be collected. Multiple numbers of each item can be ordered. I'm going to build a shopping cart for this system. I've build shopping carts before using session variables, but this application runs on clustered servers, so I'm planning on using WDDX. I've never worked with WDDX before, so I've got a few questions. When an item is ordered to my cart, would I just add it first to a local (unscoped variable) -- an array/structure variable -- then serialize it in WDDX? I would need to store a dozen or more bits of data for each order. Each item would get added to the WDDX package the same way? Or after the first item is added, would I deserialize the WDDX, dumping everything back to my local variable, then write the additional cart item to the array/structure, then serialize it all back to WDDX? Of course, on check out, I would take all of the WDDX info, deserialize it and insert it into my database tables. Am I understanding WDDX correctly and the basic logic of what I need to do? (I don't want to get deep into this and discover my thinking is all screwed up.) H. ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

