If you are sure it is the "-" character, why not just change the name of the
varible to "card_address" or "CardAddress" or something without the dash?
You still have control over the variable names, yes?

David Huyck
[EMAIL PROTECTED]


> I tried that, here is another example:
>
> <cfoutput>#URLEncodedFormat(url.CARD-ADDRESS2)#</cfoutput>
>
> This is the error I get:
> An error occurred while evaluating the expression:
>
> #URLEncodedFormat(url.CARD-ADDRESS2)#
>
> Error near line 30, column 12.
> ------------------------------------------------------------------------
> Error resolving parameter URL.CARD
>
> The specified URL parameter cannot be found. This problem is very likely
due
> to the fact that you have misspelled the parameter name.
>
>
> The error occurred while processing an element with a general identifier
of
> (#URLEncodedFormat(url.CARD-ADDRESS2)#), occupying document position
(30:11)
> to (30:47) in the template file C:\Inetpub\wwwroot\New.cfm.
>
> This is the debug information from CF:
> Parameters
> URL Parameters:
>
> ARD-ADDRESS1=add1
> CARD-ADDRESS2=add2
> CARD-CITY=city
> CARD-STATE=state
>
> Any ideas??
>
> CM
>
>
> >From: "Bill Killillay" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: URL parameter and the "-" character
> >Date: Sun, 10 Sep 2000 11:55:59 -0400
> >
> >Check out URLEncodedFormat() it will do EXACTLY what your looking for.
> >
> >Bill
> >
> > > -----Original Message-----
> > > From: CM Randall [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, September 10, 2000 11:53 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: URL parameter and the "-" character
> > >
> > >
> > > 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.

Reply via email to