I would like to use the loop index as part of the input nameI'm using fusebox methodology, so I'm passing the parameters to another form that will process these values.
But I can't get the value out of the passed parameters.
Here is part of my code:
<CFFORM ACTION="#PTH_PROJECT#index.cfm" METHOD="post">
<CFSET nLpIndx = 0>
<CFLOOP QUERY="TEMembers">
<CFSET nLpIndx = nLpIndx + 1>
<CFINPUT TYPE="TEXT"
NAME="start_date#nLpIndx#"
VALUE="#DateFormat(Trim(TEMembers.start_date),"mm/dd/yyyy"
#" SIZE=15 MAXLENGTH=15
VALIDATE="date">
</CFLOOP>
<INPUT TYPE="submit" NAME="cmdSubmit" VALUE="Submit" WIDTH="100">
</CFFORM>
I used #attributes.start_date##nLpIndx#, ##attributes.start_date###nlpIndx#,... .
Please help.
Thanks,
Longhorn
But I can't get the value out of the passed parameters.
Here is part of my code:
<CFFORM ACTION="#PTH_PROJECT#index.cfm" METHOD="post">
<CFSET nLpIndx = 0>
<CFLOOP QUERY="TEMembers">
<CFSET nLpIndx = nLpIndx + 1>
<CFINPUT TYPE="TEXT"
NAME="start_date#nLpIndx#"
VALUE="#DateFormat(Trim(TEMembers.start_date),"mm/dd/yyyy"
VALIDATE="date">
</CFLOOP>
<INPUT TYPE="submit" NAME="cmdSubmit" VALUE="Submit" WIDTH="100">
</CFFORM>
I used #attributes.start_date##nLpIndx#, ##attributes.start_date###nlpIndx#,... .
Please help.
Thanks,
Longhorn