The page posts to itself through ajax. All the parameters come through in the form scope with the information I am then passing to a function that will update a customer's information.
This is what the parameters look like when I cfdump the form variable:
If I tried to pass form.c0-param0 to my function it says it can't find the key called "c0". What I've done to get around this is:
<cfset params.allparams = "">
<cfset params.contact_id = "">
<cfset params.password = "">
<cfif isDefined("form.ajax")> <!--- when the ajax posts, the form struct gets the "ajax" key which is set to true --->
<cfset params.allparams = replace(structFind(form, "c0-param0"), "string:", "")>
<cfset params.contact_id = replace(structFind(form, "c0-param1"), "string:", "")>
<cfset params.password = replace(structFind(form, "c0-param2"), "string:", "")>
Assigning the values to a new struct and pass that along. Is there any way for me to set the keys of "form" to something without a hyphen? I looked through the docs and Googled but I haven't seen anything that would allow me to do that so I figured I'd just try once more here and be sure. This was the best way I could think to do it, but I'm really new to ColdFusion so if anyone has a better way to do it, please tell me, I'd appreciate it.