Hi,

Actually, there might be a way.  Rather than accessing the variable
explicitly, access it through the associative-array method of accessing
structures.  For example, #form.42# would not work, even if there was a
variable named "42" in the FORM scope, because variables can't start with
numbers.  But since the FORM scope is a structure, and keys CAN start with
numbers, try and access the variable like this: #form["42"]#.  That code
should execute without any problems.

-Brent

-----Original Message-----
From: river [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 10:18 AM
To: CF-Talk
Subject: variable name with number at the beginning


I am trying to get variables from an existing web site to mine, and I am
having problem with the variable that the site generates.  They use numbers
at the beginning of the variable names.  They use ASP which does not have
any problems reading variables with numbers at the beginning, but CF does.
It just does not read it.

Is there a way around it so CF can read varibles (passed as hidden variables
in a form) with numbers at the beginning of the names?

Thank you for your help.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to