Hi Balaji, There are many ways to achieve this - mostly quite messy. For a really neat solution I would recommend you look at WDDX to solve your problem. WDDX handles multiple instances of form fields very well.
At the browser end, you use the functions provided in wddx.js to serialize data as XML and pack it into a single text form field for submission. In the server, you use the <CFWDDX ACTION="WDDX2CFML" ...> tag to deserialize the XML back into a query-like structure. Now you can simply treat the form data like a query result set. One of the advantages of this approach is that it can be designed so that everything runs client-side until the user has entered as many instances of form fields as required, then just one submission to the server. You can provide visual feedback on entered items inside a scrollable <SELECT MULTIPLE> box. Regards: Ayudh +--------------------------------------------------------------+ | Turn on your Revenue Stream... | | Bolt on a Virtual Cash Register to your e-commerce site now. | | VeriPay from Xilo Online: http://www.xilo.com | +--------------------------------------------------------------+ ----- Original Message ----- From: "Balaji" <[EMAIL PROTECTED]> To: "CFAussie Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 15:39 Subject: [cfaussie] how to capture dynamic form fields in action file. > Hi > > I have a html - javascript file , which can be used to add fields to a form > by just clicking add field. > > A user may add n number of fields and submit. > > I should find out how many fields are there in the submitted form, and frame > a query based on that. > > suggestion please to find out number of fields in the form... > > --Balaji > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
