Accesing Post Data in Forms using variables
I have a problem when I tried to access post data from a form using a variable...
Thhe form
<cfquery name="ConsultaPrecios" datasource="#Application.DB#">
SELECT * FROM
VwConsultaPrecios
ORDER BY NOMBRE_PRE
</cfquery>
<cfform preservedata="yes" name="formaVentaGastos" action="" onsubmit="verificaCampos()" enctype="multipart/form-data">
<cfloop query="consultaPrecios">
<cfoutput>
<tr align="center" class="forma">
<td class="forma" align="right">#consultaPrecios.NOMBRE_PRE# - #NumberFormat(consultaPrecios.PRECIO_PRE, "$___.__")# </td></cfoutput>
<td class="forma"><cfinput validate="integer" value="0" onChange="if(this.value==''){this.value=0;}validateInt(this, #consultaPrecios.PRECIO_PRE#,'#consultaPrecios.Nombre_Pre#');" maxlength="3" message="El campo de cantidad debe ser entero!!!" type="text" size="8" name="#consultaPrecios.Nombre_Pre#_venta"></td>
<td class="forma"><cfinput style="background-color:##999999;" validate="integer" readonly="yes" value="0" type="text" size="8" name="#consultaPrecios.Nombre_Pre#"></td>
</tr>
</cfloop>
</cfform>
Processing the form
<cfloop list="#Form.FieldNames#" index="i">
<cfif findNocase('Venta',#i#) AND NOT findNoCase('TOTAL', #i#) AND NOT findNoCase('FECHA', #i#) AND NOT findNoCase('RUTA', #i#)>
<cfset a = 'form.Interno'>
<cfoutput>#Ii#</cfoutput>
<br>
</cfif>
