I have an array and want to put the elements into variables.
One of the elements has the ampersand in it. Thus causing all the elements after it to be unassigned/undefined.
<cfset attributes.contact_id = #attributes.projectarray[1]#>
<cfset attributes.contact_name = #trim(attributes.projectarray[2])#>
<cfset attributes.addr_id = #attributes.projectarray[3]#>
<cfset attributes.address = #attributes.projectarray[4]#>
<cfset attributes.site_id = #attributes.projectarray[5]#>
<cfset attributes.account = #attributes.projectarray[6]#>
<cfset attributes.permit_num = #attributes.projectarray[7]#>
If the address (element 4) has the & in it, attributes site_id, account and permit_num are undefined because the system thinks that the array has only 4 elements and not 7.
Does anyone know why?
Thanks.
One of the elements has the ampersand in it. Thus causing all the elements after it to be unassigned/undefined.
<cfset attributes.contact_id = #attributes.projectarray[1]#>
<cfset attributes.contact_name = #trim(attributes.projectarray[2])#>
<cfset attributes.addr_id = #attributes.projectarray[3]#>
<cfset attributes.address = #attributes.projectarray[4]#>
<cfset attributes.site_id = #attributes.projectarray[5]#>
<cfset attributes.account = #attributes.projectarray[6]#>
<cfset attributes.permit_num = #attributes.projectarray[7]#>
If the address (element 4) has the & in it, attributes site_id, account and permit_num are undefined because the system thinks that the array has only 4 elements and not 7.
Does anyone know why?
Thanks.