I do something like that, but use a regex that works no matter how many
digits are in the form field.
<CFLOOP LIST = "#FORM.FieldNames#" INDEX = "ThisField">
<CFSET variables.RecID=RemoveChars(ThisField,1,REFind
"[[:digit:]]",ThisField)-1)>
... do stuff with variables.RecID ...
</CFLOOP>
--Matt Robertson--
MSB Designs, Inc.
http://mysecretbase.com
-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 10:01 AM
To: CF-Talk
Subject: Re: Numeric Form Field Names...
just do it so that you have something like #form.field_1# and if you
just want the 1 out of it, do a #right(form.fieldNames, 1)# to get he
desired field numbers
"Success is a journey, not a destination!!"
Doug Brown
----- Original Message -----
From: "Houk, Gary" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 9:49 AM
Subject: Numeric Form Field Names...
> I have an online survey that I built. The questions are dynamically
> drawn from a table. The radio button values are drawn from a different
> table. I wanted the name of each radio button group to be the id of
> the question. This of course creates a problem when trying to output
> #form.1#. Any ideas on how to work around this?
>
> Thanks,
>
> - Gary
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists