One thing I noticed is that in your "dept_#x#" input, you don't have a
TYPE defined for that input.  Not sure if that's the problem or not.  I
know I've run into problems before with using dashes "-" in my form
field names.  That could be it.  

John

-----Original Message-----
From: Spectrum WebDesign [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 9:56 AM
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