Aaron DC wrote:

> Although CF is all too happy to display the form fields submitted on a page, I do not think you can have variables names with "-" in them?

Generally not, but you can jump through hoops to create them,
such as the form example. However, I wouldn't recommend it
because "-" is an operator.

Consider the following:
<input name="CAA07070-CD2A-D6D6-A51F-D53630BFD539" type="text"
value="1"/>

Now on the action page:
<cfset CAA07070 = 8>
<cfset CD2A = 2>
<cfset D6D6 = 2>
<cfset A51F = 2>
<cfset D53630BFD539 = 2>

<cfoutput>#Evaluate(CAA07070-CD2A-D6D6-D51F-D53630BFD539)#</cfoutput>

Should this be evaluated as 5 value substittions (8-2-2-2-2) and
then a substraction (returning 0), or as just one substitution of
the form variable returning 1?

Using operators in variable names only creates confusion.

Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to