First, 0806 is an invalid variable name because it starts with asomething other than a letter and sooner or later, you will probably run into a wall but you CAN use it. Try this...
<cfset form['0806'] = 'duh' /> <cfoutput>#form['0806']#</cfoutput> I'd recommend coming up with a different naming convention though. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Andrew Peterson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 9:27 AM To: CF-Talk Subject: IsDefined on a variable name that begins with a number throws error Hello, I've got a form with field names that begin with a number. On the action page, if I check for its existence - cfif isdefined("form.0806") - it tells me that Parameter 1 of function IsDefined, which is now "form.0806", must be a syntactically valid variable name. Does anyone know of any workaround for this? Can I put an evaluate in there or something? I'm looking for something more elegant than looping through form fields and preceeding each field name with a char. Thank you in advance. Sincerely, Andrew ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260519 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4