I've generated a cfloop to create textfields based on the user input from 1-5.(max up to 5 field)
<-- check to see if #form.input# GT 5-->
cfset count=#form.input#>
<cfif count GT 5>
<--Error message-->
<cfelse>
<cfloop index="index" from="1" to="#count#">
<cfoutput><input type="text" size="5" name="area">
</cfoutput></cfloop></cfif>
The problem I faced now is, how am I purpose to insert the data from the textfield into the database having that they have the same textfield name?Can this be done using loop?
<-- check to see if #form.input# GT 5-->
cfset count=#form.input#>
<cfif count GT 5>
<--Error message-->
<cfelse>
<cfloop index="index" from="1" to="#count#">
<cfoutput><input type="text" size="5" name="area">
</cfoutput></cfloop></cfif>
The problem I faced now is, how am I purpose to insert the data from the textfield into the database having that they have the same textfield name?Can this be done using loop?