Hi,
The problem is that the hyphen ('-') isn't allowed in a variable name. This is a CF
spec/limitation. That would include URL and form variable names. Try an underscore.
Or, if you can't control the name of the URL variable (for some reason), you'll need
to do some CGI.QUERY_STRING parsing and replace any hyphens with underscores in the
variable name, before you try to use the variable in your CFML.
HTH,
-Max
At 9/10/2000 11:52 AM -0400, CM Randall wrote:
>I'm having a problem reading a URL parameter when it has a minus sign "-" in
>the URL var name.
>
>For example, someone is passing to me via URL card-address=MyAddress.
>
>I can not read this by doing the following:
><cfoutput>#url.card-address1#</cfoutput>
>OR
><cfset addr1 = url.card-address1>
>
>When I get an error is tells me that the parameter card doesn't exist.
>
>How do I escape the - character so it doesn't error out? I know this can
>work because it is displaying in the CF debug area at the bottom of the
>page.
>
>Thanks!
>
>CM
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.