OK, with the help of Hatton and others I am closer. I have this:

<cfoutput query="getContentObjectData">
         <cfset NewContentBlock = 
#REReplace(ContentBlock,"<form[^>]*>","","all")#>
         <cfset NewContentBlock = 
#REReplace(NewContentBlock,"</form[^>]*>","","all")#>
            <cfloop list="#form.fieldNames#" index="field">
                 <cfif ListFindNoCase(form.HeaderFields, Field)>
                    <cfset NewContentBlock = 
#REReplaceNocase(NewContentBlock,'<input\s+[^>]*type="radio"[^>]*>', 
"x","ONE")#>
                <cfelse>
                    <cfset NewContentBlock = 
#REReplaceNocase(NewContentBlock,'<input\s+[^>]*type="radio"[^>]*>', 
"&nbsp;","ONE")#>
                </cfif>
         <cfset NewContentBlock = 
#REReplaceNoCase(NewContentBlock,'<input\s+[^>]*name="#field#"[^>]*>', 
form[field],"ONE")#>
         <cfset NewContentBlock = 
#REReplaceNoCase(NewContentBlock,'<input\s+[^>]*name="#field#"[^>]*>', 
"&nbsp;","ALL")#>
        </cfloop> 
</cfoutput>

The extra replaces are for the radio buttons. Basically what I am trying 
to do now is match the submitted radio to the column it corresponds to 
but it is not working correctly. I thought that if I found the header 
field from the form they would match up but that is not correct. Can 
anyone see what I am doing wrong here?

Thanks again for the answers,

Bruce

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301763
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to