|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Setting contents of array with multi value
I am putting form values in an array. Here is the code of the form value I am using...
<!--- <cfinput name="answer#i#.#j#"> ---> I have no probs with this! When I try to stick it in an array like this.. <!--- <CFLOOP from="1" to="#SESSION.NumOfAwnz#" index="r"> <CFSET NumOfAwn[r]=#form['answer' & i & . & r]#> </CFLOOP> ---> I get this error... <!--- Invalid CFML construct found on line 53 at column 65. and it states "ColdFusion was looking at the following text:.The CFML compiler was processing: * an expression beginning with "\'", on line 53, column 50.This message is usually caused by a problem in the expressions structure. * an expression beginning with "#", on line 53, column 44.This message is usually caused by a problem in the expressions structure. * a CFSET tag beginning on line 53, column 26. * a CFSET tag beginning on line 53, column 26. * a CFSET tag beginning on line 53, column 26. LINE 53 is of course... <CFSET NumOfAwn[r]=#form['answer' & i & . & r]#> ANY IDEAS ON HOW TO SET THIS VARIABLE CORRECTLY???? |
|
#2
|
||||
|
||||
|
try this
<CFSET NumOfAwn[r]= '#form['answer' & i & . & r]#'> (NOTICE difference is ' ' around what u had if it doesn't work buy beer it always helps. -Alas |
|
#3
|
|||
|
|||
|
Try this:
<CFSET NumOfAwn[r]=#form['answer#i##r#']#>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Setting contents of array with multi value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|