The problem isn't Fusebox-specific, it's just that & is a URL special 
character.  Here's a way to work around it:

When you send the variable through a URL, run it through URLEncodedFormat() 
TWICE:

<cflocation 
url="index.cfm?fuseaction="#FA1#&foo=#URLEncodedFormat(URLEncodedFormat(foo))#">

Then in your process, use URLDecode() to get it back into proper form:

<cfoutput>
#URLDecode(url.foo)#
</cfoutput>

It's a bit of a bear, but it works.  On the other hand, if you avoid using URL 
variables you don't have to worry about it.  You could shove the value into a 
hidden field on a form that calls your action URL and auto-submit the form with 
JavaScript.  Nothing gets exposed in the browser address window, and you don't 
have to deal the vagaries of URL formats.

- Jeff

On 21 Mar 2001, at 19:19, Chris Montgomery wrote:

> Howdy,
> 
> I've hit a brick wall and can't get around it. What I need to do is pass an
> ampersand (&) in a URL variable. For example, "Company_A_&_B" is supposed to
> be sent as part of a URL variable.
> 
> On the page that receives this URL variable, it stops after it spits out
> "Company_A_", when it gets to the ampersand. I've tried URLEncodedFormat,
> and I've also tried HTMLEditFormat, but no luck. I'm wondering if
> formurl2attributes.cfm is causing the problem.
> 
> Anyone run up against this before when using & in URL's with Fusebox?
> 
> TIA,
> 
> Chris Montgomery             [EMAIL PROTECTED]
> 
> Web Development & Consulting http://www.astutia.com
> Allaire Consulting Partner
> 210-490-3249/888-745-7603    Fax 210-490-4692
> AIM: astutiaweb; ICQ: 7381282


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to