Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Ekimov #1
faking a form scope
I'm setting up dynamic variables that need to mimic a form scope. currently,
I'm setting them like:
<cfset FORM[#CurrentColumnName#] = #trim(RowArray[x])#>
This was fine, but lately seems to be causing problems. Can someone tell me
if this is incorrect. I need to reference the variables like "form.firstname".
The "firstname" part comes from a table, so I need to set this dynamically.
If there is a better way, please let me know.
Thanks.
Ekimov Guest
-
Sporadic loss of FORM scope data
Up to 10% of my users get errors when submitting forms. FORM scope is totally gone (no FIELDNAMES, no hidden fields, zip, nada) I have done the... -
FORM scope and CFCs?
I have a application where users take a 90 question multiple choice test, after each of the 6 pages I want to save their answers to an array for... -
Array scope and a form
I'm having trouble with the scope of an array. I define it then try to populate it within a form, but once out of the form, the original values are... -
Structures from URL and FORM scope
I've recently discovered an abborant behavior of CF MX. I vaguely remember that this did not work this way in CF 5, but I could be mistaken. But... -
Faking photos
Are there any tutorials or websites on using photoshop elements 2.0 to fake pictures? Thanks, McB -
Stressed_Simon #2
Re: faking a form scope
That is fine. However you do not need any of those #s in there.
ie <cfset FORM[CurrentColumnName] = Trim(RowArray[x])>
Stressed_Simon Guest
-
MikerRoo #3
Re: faking a form scope
You might have better luck with this syntax:
<cfset "FORM.#CurrentColumnName#" = Trim(RowArray[x])>
MikerRoo Guest



Reply With Quote

