- is not allowed in a var name. Treat the form scope as a struct and it
will work (it's not a good idea to use evaluate anyway).

<CFIF IsDefined('form.deptID')>
<cfoutput>
<cfloop list = "#Form.dept_ID#" index = "ID">
<cfset thisField = "dept_" & ID>
ThisField= #ThisField#<BR>
Right = #ID#<br>
#Form[thisfield]#
</cfloop>
</cfoutput>
</CFIF>

> -----Original Message-----
> From: Spectrum WebDesign [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 11 juni 2004 15:56
> To: CF-Talk
> Subject: Evaluate error in update multiple records
>
> Hi all.This is my simple dynamic form fields:
>
>
> <TR> <TD>
>
> <INPUT type="hidden" name="deptID"
> value="0550EA15-795D-1267-36B0D328F38698EE"><BR>
> <INPUT class=fields maxLength=30 size=50
> name="dept_0550EA15-795D-1267-36B0D328F38698EE"
> value="New York"><BR>
>
> <INPUT type="hidden" name="deptID"
> value="0550EA29-795D-1267-318AF5DE0E50B206"><BR>
> <INPUT class=fields maxLength=30 size=50
> name="dept_0550EA29-795D-1267-318AF5DE0E50B206"
> value="LA"><BR>
>
> <INPUT type="hidden" name="deptID"
> value="0550EA33-795D-1267-33AEDC6D486EBC2C"><BR>
> <INPUT class=fields maxLength=30 size=50
> name="dept_0550EA33-795D-1267-33AEDC6D486EBC2C"
> value="Chicago"><BR>
>
> <INPUT type="hidden" name="deptID"
> value="0550EA3D-795D-1267-3551A63732E2FEFD"><BR>
> <INPUT class=fields maxLength=30 size=50
> name="dept_0550EA3D-795D-1267-3551A63732E2FEFD"
> value="Seattle"><BR>
>
> </TD></TR>
>
>
> When send that form:
>
> <CFIF IsDefined('form.deptID')>
>
> <cfloop list = "#Form.FieldNames#" index = "ThisField"> <cfif
> LEFT(ThisField,5) Is "dept_"> <cfoutput> ThisField=
> #ThisField#<BR> Right=
> #RIGHT(ThisField,(LEN(ThisField)-5))#<br>#evaluate("#thisfield#")#
> </cfoutput>
> </cfif>
> </cfloop>
>
> </CFIF>
>
>
> CF Error:
>
> "795D," on line 1, column 23, is not a valid identifer name.  
> The CFML compiler was processing:
>
> an _expression_ beginning with "DEPARTAMENTO_0550EA15", on line
> 1, column 1.This message is usually caused by a problem in
> the expressions structure.
>  
> What's happened? Maybe evaluate?
>
> Thanx for your time.
> --
> ___________________________________________________________
> Sign-up for Ads Free at Mail.com
> http://promo.mail.com/adsfreejump.htm
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to