RE: Passing form data to CFC, Array or Structure

2004-10-14 Thread Pascal Peters
Why don't you create a structure that links form field names to database field names and pass that structure and the form structure to your cfc. Pascal > -Original Message- > From: sonicDivx [mailto:[EMAIL PROTECTED] > Sent: 14 October 2004 19:57 > To: CF-Talk > Subject: Passing form data

Re: Passing form data to CFC, Array or Structure

2004-10-14 Thread Douglas Knudsen
you could pass the form struct itself, eh? Doug On Thu, 14 Oct 2004 20:12:25 -0400, sonicDivx <[EMAIL PROTECTED]> wrote: > Raymond, >   >  Yeah that I know, what I am trying to do is keep the routine somewhat >  generic and pass all the form variables in without having to designate >  individual

Re: Passing form data to CFC, Array or Structure

2004-10-14 Thread sonicDivx
Raymond, Yeah that I know, what I am trying to do is keep the routine somewhat generic and pass all the form variables in without having to designate individual cfargument statements (I have over 40 variables- don't ask, they went form crazy )  so my basic method is necessary just was wondering i

Re: Passing form data to CFC, Array or Structure

2004-10-14 Thread Raymond Camden
Actually, it doesn't matter what the form names are. Consider a CFC method that takes 2 args, name and age. Your form fields could be called Darth and Luke, and this will work fine: (in calling document) Now in your CFC you have         and then you can do your db call here, and it doesn't