Still not clear RE: which page is which and where you're seeing what.

Let's say you have:

page1.cfm

<cfset var1 = "this is a test">
<cflocation url="page2.cfm?variable=#urlEncodedFormat(var1)#">

...then, on page2.cfm, you should see in the browser's URL/location bar:

...page2.cfm?variable=this%20is%20a%20test

...and, on page2.cfm, if you do this:

<cfoutput>#url.variable#</cfoutput>

...that should produce:

this is a test

If you do exactly that (and nothing else) and it's not behaving as I've
described than something truly bizarre is going on.


On Wed, Jan 23, 2013 at 10:40 AM, Torrent Girl <moniqueb...@gmail.com>wrote:

>
> >> but when I pass the var using cflocation it isn't.
> >
> >Where, specifically? In the browser's URL/location bar? Or when you
> ><cfoutput>#url.variable#</cfoutput>? (If the latter, that's the way it's
> >supposed to work.)
> >
> >
> >On Wed, Jan 23, 2013 at 10:22 AM, Torrent Girl <moniqueb...@gmail.com
> >wrote:
> >
> >>
>
>
> When I output the var on the page I see the encoded version:
>
> index.cfm?variable=this%20is%20a%20test
>
> when it passes as a URL string, it is not encoded. I see the spaces:
> /index.cfm?variable=this is a test
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to