URLEncodedFormat will change all the special characters in the newURL var into url-safe form (% values) instead of the = ? &, so the newURL var will have all the content you want.
The only other way I can suggest is parsing the cgi.query_string and splitting the tokens yourself. (<cfset newURL=replacenocase(cgi.query_string,"newURL=","")>) On 10/18/05, Charlie Griefer <[EMAIL PROTECTED]> wrote: > perhaps...if you wrap it in a URLEncodedFormat(). > > otherwise, if the ? after 'page2.cfm' doesn't "break" it, the & after > var1=a certainly will (well, not break it...but it won't work like > you're expecting) :) > > On 10/18/05, B G <[EMAIL PROTECTED]> wrote: > > Is this possible? > > > > I want to pass a string containing URL variables through a URL. For > > example: > > > > www.domain.com/page.cfm?newURL=www.domain.com/page2.cfm?var1=a&var2=b > > > > In other words on page2.cfm I should reference > > > > #URL.newURL# outputs www.domain.com/page2.cfm?var1=a&var2=b ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221398 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

