By any wild chance did you urlencode it already? If you output

form.searchparam

_before_ the cflocation, and throw in an abort, is it encoded?

Also - you don't need cfoutput tags around a cflocation.


On Wed, Jan 23, 2013 at 2:16 PM, Torrent Girl <moniqueb...@gmail.com> wrote:

>
> >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:
> >
> >>
>
>
> I guess I should have noted that I am posting to an external URL which is:
>
> <cfoutput><cflocation url="
> http://citiprogram.desk.com/customer/portal/articles/search?q=#URLEncodedFormat(form.SEARCHPARAM)#"
> addtoken="no"></cfoutput>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:354037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to