oi Robert!! why couldn't you just convert the form scope to a wddx packet, and chuck that into a db on the action page of the form?
-- Critz Macromedia Certified Advanced ColdFusion Developer <CFX_BotMaster Network="Efnet" Channel="ColdFusion" Blog="http://blog.ctzc.com"> ------------------------------------ Wednesday, October 2, 2002, 12:06:08 PM, you wrote: RS> To save the information to a database you would need to submit a cfm page. RS> On way to do this is with a hidden frame. The onChange event from a form RS> field in a visible frame could populate a field in a hidden frame and then RS> submit that page in the hidden frame (which would write the information to a RS> database, a session variable, or whatever). I've never done this but there RS> is no reason it shouldn't work. RS> -----Original Message----- RS> From: Ryan Kime [mailto:[EMAIL PROTECTED]] RS> Sent: Wednesday, October 02, 2002 10:07 AM RS> To: CF-Talk RS> Subject: RE: Save form data before submit RS> Something like this? I am using this in a contact form page. RS> <script language=javascript> RS> function getperson() { RS> if (document.Form1.Products.value=="GI") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="HE") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="SP") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="BP") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="MP") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="TS") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="IR") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="HR") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } if RS> (document.Form1.Products.value=="SU") { RS> document.Form1.sendto.value="[EMAIL PROTECTED]" } RS> } RS> </script> RS> The sendto field is hidden. And the function is called using an OnChange RS> event from a dropbox. RS> -----Original Message----- RS> From: Tony Weeg [mailto:[EMAIL PROTECTED]] RS> Sent: Tuesday, October 01, 2002 8:07 PM RS> To: CF-Talk RS> Subject: RE: Save form data before submit RS> oh please oh please.....that would rock. RS> i hope someone who knows replies to this...this would RS> be very cool....or, what about sending the data RS> to a session variable onBlur :) RS> that would be even nicer!! RS> tw RS> -----Original Message----- RS> From: Paul Campano [mailto:[EMAIL PROTECTED]] RS> Sent: Tuesday, October 01, 2002 9:30 PM RS> To: CF-Talk RS> Subject: Save form data before submit RS> Is there a way I can save the data from a form field BEFORE the submit RS> button is pressed? I thought I saw something awhile back that used RS> javascript to save each line to a db onBlur ? Has anyone done this or have RS> an idea on how it can be done? Thanks. RS> Paul Campano RS> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm