> I can't seem to use a named field in a URL's querystring
when it contains a
> hyphen. Here's my code:
> item1 = <cfoutput>#url.item1#</cfoutput>
> orderID = <cfoutput>#url.orderID#</cfoutput>
> card_type =
> I have no problem with item1 or orderID but card-type
returns the error
> " Element CARD is undefined in URL."
> This URL is coming from a third party so I can't change
This seems to be the week of the "array notation".
You can not use an invalid variable name string in a dot
expression. What ColdFusion is trying to do is evaluate
minus 'type' and can not find an 'url.card'.
To use invalid variable string names one need to use array
url["card-type"] should get you what you want.