I have what I feel like is a basic question, but for some reason I can't
figure this out. I have a basic form where I output a list of name/value
pairs for editing (i.e., name=value). However, I am dependent on maintaining
the casing of the var name. I have made the form field name the name of the
variable, but when I post the form, all the field names come in upper cased.
I want to be able to do something like this:

<cfloop collection="#Form#" item="formField">
  #formField#=#Form[formField]#
</cfloop>

but the #formField# casing is always "NAME" instead of "Name" or "name". I
have tried a number of different ways of getting at the form field namew
(the above way, looping over the Form.fieldnames variable, using cfscript's
"for fieldname in Form" syntax), but it's always upper cased. Is there a way
to preserve the casing? I really don't want to have to create a structure
mapping or some such workaround with the properly cased names if it's not
necessary.

Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to