Maybe we should re-wind...
I presume since you are using UUID's that those are being used to name fields
Why not re-map them, e.g.
<input type="hidden" name="name_CAA07070CD2AD6D6-D51FD53630BFD539"
value="CAA07070-CD2A-D6D6-D51F-D53630BFD539">

(notice the removal of "-" by using
Replace("CAA07070-CD2A-D6D6-D51F-D53630BFD539", "-", "")

Then you can safetly rename your displayed fields:
<input type="text" name="form_CAA07070CD2AD6D6-D51FD53630BFD539" value="">

then, when you have the action form you can join both the form_<uuid>
var with the name_<uuid> value

hope that makes sense

regards

Mark Drew

On Thu, 24 Jun 2004 13:15:36 +0200, Jochem van Dieten
<[EMAIL PROTECTED]> wrote:
>
> 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