Assuming that 'formName' is literal text...

<cfset SomeVariable="formName#ID#">  ??

Or

<cfset SomeVariable="formName" & ID>   ??



-----Original Message-----
From: Phillip Perry [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 7:59 AM
To: CF-Talk
Subject: Naming Forms randomly


hello,

I use a form with a naming structure of "formName#ID#". The CF template ends
up making multiple forms which is why i thought the #id# part would be a
good idea, to allow for identifying which form i want to work on. The
problem is that when i try to refer to the form name in any CF template i
get error messages. for instance if i try <cfset SomeVariable=formName#ID#>
I get an error referring to the #'s. Is there a better way to name forms
when you need each name to be unique and still be able to refer to it in CF?

Thanks,

Phil



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300955
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to